removed X-NUCLEO-COMMON and ST-INTERFACES

Dependents:   unh-hackathon-example unh-hackathon-example-raw

Fork of X_NUCLEO_IKS01A1 by ST

Files at this revision

API Documentation at this revision

Comitter:
Wolfgang Betz
Date:
Wed Jun 01 16:52:28 2016 +0200
Parent:
84:7e38323c9488
Child:
86:c5e05108d07b
Commit message:
Add protceted destructor to avoid deletion

Changed in this revision

x_nucleo_iks01a1.h Show annotated file Show diff for this revision Revisions of this file
--- a/x_nucleo_iks01a1.h	Wed Jun 01 16:40:49 2016 +0200
+++ b/x_nucleo_iks01a1.h	Wed Jun 01 16:52:28 2016 +0200
@@ -83,6 +83,11 @@
  protected:
 	X_NUCLEO_IKS01A1(DevI2C *ext_i2c, PinName ff_irq_pin);
 
+	~X_NUCLEO_IKS01A1(void) {
+	    /* should never be called */
+	    error("Trial to delete X_NUCLEO_IKS01A1 singleton!\n");
+	}
+
 	/**
 	 * @brief  Initialize the singleton's sensors to default settings
 	 * @retval true if initialization successful,