mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC11UXX/gpio_irq_api.c
- Revision:
- 35:371630885ad6
- Parent:
- 13:0645d8841f51
- Child:
- 250:a49055e7a707
--- a/targets/hal/TARGET_NXP/TARGET_LPC11UXX/gpio_irq_api.c Fri Oct 11 13:30:08 2013 +0100 +++ b/targets/hal/TARGET_NXP/TARGET_LPC11UXX/gpio_irq_api.c Mon Oct 21 11:45:04 2013 +0100 @@ -131,3 +131,11 @@ } } } + +void gpio_irq_enable(gpio_irq_t *obj) { + NVIC_EnableIRQ((IRQn_Type)(PININT_IRQ + obj->ch)); +} + +void gpio_irq_disable(gpio_irq_t *obj) { + NVIC_DisableIRQ((IRQn_Type)(PININT_IRQ + obj->ch)); +}