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 */