boards: pic32-wifire: Define buttons configuration

Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
This commit is contained in:
Francois Berder 2020-04-03 18:59:35 +01:00
parent 8db01ab9a0
commit d70f0cab51
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

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