mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 15:50:23 +00:00
GPIO_EDGE_RISING was (12 << GPIO_CN_SHIFT), which sets bits 10 and 11 (GPIO_PULLDOWN | GPIO_EDGE_DETECT) instead of the edge type bit 12 that its comment describes. A pin configured for rising edges therefore also got the pull-down, and a falling-edge pin with GPIO_PULLDOWN was taken as a rising-edge pin. Use bit 12. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com> |
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| Kconfig | ||