From d70f0cab513f5dfebd2577bad4ac11ac402db26b Mon Sep 17 00:00:00 2001 From: Francois Berder <18538310+francois-berder@users.noreply.github.com> Date: Fri, 3 Apr 2020 18:59:35 +0100 Subject: [PATCH] boards: pic32-wifire: Define buttons configuration Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com> --- boards/pic32-wifire/Makefile.features | 1 - boards/pic32-wifire/include/board.h | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/boards/pic32-wifire/Makefile.features b/boards/pic32-wifire/Makefile.features index 051b80b1dc..1731bd2ac7 100644 --- a/boards/pic32-wifire/Makefile.features +++ b/boards/pic32-wifire/Makefile.features @@ -2,6 +2,5 @@ CPU = mips_pic32mz CPU_MODEL = p32mz2048efg100 # Put defined MCU peripherals here (in alphabetical order) -FEATURES_PROVIDED += periph_gpio FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/pic32-wifire/include/board.h b/boards/pic32-wifire/include/board.h index 986e4e1c10..ce8c33477f 100644 --- a/boards/pic32-wifire/include/board.h +++ b/boards/pic32-wifire/include/board.h @@ -69,6 +69,17 @@ extern "C" { #define LED4_TOGGLE (LATGINV = LED4_MASK) /** @} */ +/** + * @name Button pin configuration + * @{ + */ +#define BTN0_PIN GPIO_PIN(PORT_A, 5) +#define BTN0_MODE GPIO_IN + +#define BTN1_PIN GPIO_PIN(PORT_A, 4) +#define BTN1_MODE GPIO_IN +/** @} */ + /** * @brief Board level initialization */