A library for Freescale MCU which contain TSI peripheral, just for Kinetis L version. Because they use "lighter" version of TSI peripheral.
Dependents: kl25z-tinyshell-demo tsi_slider_light_senso_LED frdm_tsi_slider_led_blend demo_slider ... more
This library is "fork" of the TSI library created by the mbed team.
Diff: tsi_sensor.h
- Revision:
- 5:14f1557e02a0
- Parent:
- 4:f64097679f27
- Child:
- 7:f4bb237d08ca
--- a/tsi_sensor.h Mon Aug 04 07:43:15 2014 +0000 +++ b/tsi_sensor.h Tue Sep 09 19:38:11 2014 +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)|(TARGET_KL46Z) switch(pin) { //these are case PTA0: return 1;