cc2538: gpio: Fix missed power-up interrupts

Power-up interrupts do not always update the regular interrupt status.
Because of that, in order not to miss power-up interrupts, the ISR must
handle both the regular and the power-up interrupt statuses.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
This commit is contained in:
Benoît Thébaudeau 2015-04-09 00:44:51 +02:00
parent 1e67ab3941
commit 1a5632cba0

View file

@ -93,7 +93,8 @@ gpio_port_isr(uint8_t port)
base = GPIO_PORT_TO_BASE(port);
notify(GPIO_GET_MASKED_INT_STATUS(base), port);
notify(GPIO_GET_MASKED_INT_STATUS(base) | GPIO_GET_POWER_UP_INT_STATUS(port),
port);
GPIO_CLEAR_INTERRUPT(base, 0xFF);
GPIO_CLEAR_POWER_UP_INTERRUPT(port, 0xFF);