mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +00:00
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:
parent
1e67ab3941
commit
1a5632cba0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user