boards: pic32-wifire: Define buttons configuration
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
This commit is contained in:
parent
8db01ab9a0
commit
d70f0cab51
@ -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
|
||||
|
||||
@ -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
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user