KL05Z fixes
Fork of tsi_sensor by
Revision 5:f269379b60c5, committed 2015-03-26
- Comitter:
- pvtmert
- Date:
- Thu Mar 26 20:41:18 2015 +0000
- Parent:
- 4:f64097679f27
- Commit message:
- fixed for KL05Z tsi sensor...
Changed in this revision
tsi_sensor.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r f64097679f27 -r f269379b60c5 tsi_sensor.h --- a/tsi_sensor.h Mon Aug 04 07:43:15 2014 +0000 +++ b/tsi_sensor.h Thu Mar 26 20:41:18 2015 +0000 @@ -112,7 +112,7 @@ * @throws compile-time error if target is not supported, or runtime error if pin does not match any channel. */ static uint8_t getTSIChannel(PinName pin) { -#if defined (TARGET_KL25Z) +#if defined (TARGET_KL25Z) || defined (TARGET_KL05Z) switch(pin) { //these are case PTA0: return 1; @@ -128,8 +128,10 @@ case PTB17: return 10; case PTB18: return 11; case PTB19: return 12; + #ifdef TARGET_KL25Z case PTC0: return 13; case PTC1: return 14; + #endif default: error("PinName provided to TSIElectrode::getTSIChannel() does not correspond to any known TSI channel."); } # else