Merge pull request #13747 from gschorcht/boards/esp32-heltec-lora-v2

boards: define the interrupt flank for BTN0 for ESP32 Heltec Lora32 V2
This commit is contained in:
benpicco 2020-03-29 17:38:47 +02:00 committed by GitHub
commit 48eaef7aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,13 @@
*/ */
#define BTN0_MODE GPIO_IN #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 * @brief Definition for compatibility with previous versions
*/ */