mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
7554eedf9a
This patch resolves to bugs in the GPIO interrupt logic: 1. Any pins did not have STMPE811_GPIO_RISING in their pincfg would clear the rising edge interrupt enable flag for all pins due to a masking bug. 2. Pins would never trigger a second interrupt. There is an undocumented requirement that you have to clear both the GPIO interrupt status register __and__ also the edge detection status register. Failure to clear either of these will result in no further interrupts being triggered. This requirement exists both for edge and level modes of operation. Signed-off-by: Brennan Ashton <bashton@brennanashton.com>