From 0c4fb6c09214fe6872b84e0bb6e02f67913108f9 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sun, 29 Mar 2020 11:59:17 +0200 Subject: [PATCH] boards/esp32-heltec-lora-v2: define BTN0_INT_FLANK --- boards/esp32-heltec-lora32-v2/include/board.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/boards/esp32-heltec-lora32-v2/include/board.h b/boards/esp32-heltec-lora32-v2/include/board.h index 113769ff05ab..5c80a56cc6d1 100644 --- a/boards/esp32-heltec-lora32-v2/include/board.h +++ b/boards/esp32-heltec-lora32-v2/include/board.h @@ -55,6 +55,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 */