您好,我使用的是DA14580,请问我们的按键检测,使能中断时, void GPIO_EnableIRQ( GPIO_PORT port, GPIO_PIN pin, IRQn_Type irq, bool low_input, bool release_wait, uint8_t debounce_ms ) 能否做成双边沿检测呢?现在是按下有中断,松开没有中断。 谢谢。
您好,
可使用系统的软定时器: app_easy_timer(); 定时单位最小是 10ms
也可参照外设例程(5.0.4\projects\target_apps\peripheral_examples)中的 timer 的用法,使用硬件定时器