1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/esp32: add button default interrupt flank definition

This commit is contained in:
Gunar Schorcht 2020-03-19 07:11:09 +01:00
parent dff74a3278
commit b1ec6953a3
3 changed files with 21 additions and 0 deletions

View File

@ -54,6 +54,13 @@
*/
#define BTN0_MODE GPIO_IN
/**
* @brief Default interrupt flank definition for the button GPIO
*/
#ifndef BTN0_INT_FLANK
#define BTN0_INT_FLANK GPIO_FALLING
#endif
/**
* @brief Definition for compatibility with previous versions
*/

View File

@ -60,6 +60,13 @@
#define BUTTON0_PIN BTN0_PIN
/** @} */
/**
* @brief Default interrupt flank definition for the button GPIO
*/
#ifndef BTN0_INT_FLANK
#define BTN0_INT_FLANK GPIO_FALLING
#endif
/**
* @name LED (on-board) configuration
*

View File

@ -56,6 +56,13 @@
*/
#define BTN0_MODE GPIO_IN
/**
* @brief Default interrupt flank definition for the button GPIO
*/
#ifndef BTN0_INT_FLANK
#define BTN0_INT_FLANK GPIO_FALLING
#endif
/**
* @brief Definition for compatibility with previous versions
*/