Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of tsi_sensor by
Revision 9:525736a96433, committed 2015-04-17
- Comitter:
- dudmuck
- Date:
- Fri Apr 17 01:53:22 2015 +0000
- Parent:
- 8:395a4619c41f
- Commit message:
- only builds for PLATFORM_Freescale
Changed in this revision
| tsi_sensor.cpp | Show annotated file Show diff for this revision Revisions of this file | 
| tsi_sensor.h | Show annotated file Show diff for this revision Revisions of this file | 
--- a/tsi_sensor.cpp	Wed Apr 15 08:22:29 2015 +0000
+++ b/tsi_sensor.cpp	Fri Apr 17 01:53:22 2015 +0000
@@ -20,6 +20,7 @@
 
 #include "mbed.h"
 #include "tsi_sensor.h"
+#ifdef TARGET_Freescale
 
 void tsi_irq(void);
 TSIAnalogSlider *TSIAnalogSlider::_instance;
@@ -153,3 +154,4 @@
     TSI0->GENCS |= TSI_GENCS_EOSF_MASK; // Clear End of Scan Flag
     changeElectrode(analog_slider);
 }
+#endif /* TARGET_Freescale */
\ No newline at end of file
--- a/tsi_sensor.h	Wed Apr 15 08:22:29 2015 +0000
+++ b/tsi_sensor.h	Fri Apr 17 01:53:22 2015 +0000
@@ -21,6 +21,7 @@
 
 #ifndef TSISENSOR_H
 #define TSISENSOR_H
+#ifdef TARGET_Freescale
 
 /**
 * TSISensor example
@@ -46,6 +47,7 @@
 */
 #define NO_TOUCH 0
 
+
 /** TSI Electrode with simple data required for touch detection.
  */
 class TSIElectrode {
@@ -240,5 +242,5 @@
 protected:
     static TSIAnalogSlider *_instance;
 };
-
+#endif /* TARGET_Freescale */
 #endif
    