mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
Diff: targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/gpio_irq_api.c
- Revision:
- 113:65a335a675de
- Parent:
- 86:26fc69fd3b6c
- Child:
- 134:4fb64af58963
--- a/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/gpio_irq_api.c Fri Mar 07 16:00:07 2014 +0000 +++ b/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/gpio_irq_api.c Mon Mar 10 11:30:07 2014 +0000 @@ -17,6 +17,7 @@ #include "cmsis.h" #include "gpio_irq_api.h" +#include "gpio_api.h" #include "error.h" #define CHANNEL_NUM 64 // 31 pins on 2 ports @@ -176,9 +177,8 @@ // Change the NMI pin to an input. This allows NMI pin to // be used as a low power mode wakeup. The application will // need to change the pin back to NMI_b or wakeup only occurs once! -extern void gpio_init(gpio_t *obj, PinName pin, PinDirection direction); void NMI_Handler(void) { gpio_t gpio; - gpio_init(&gpio, PTB5, PIN_INPUT); + gpio_init_in(&gpio, PTA4); }