diff --git a/boards/openmote-b/board.c b/boards/openmote-b/board.c index 80415fa77b..ceaaecec02 100644 --- a/boards/openmote-b/board.c +++ b/boards/openmote-b/board.c @@ -32,7 +32,7 @@ void board_init(void) /* The boot pin must be set to input otherwise it may lock the bootloader */ gpio_init(BOOT_PIN, GPIO_IN); - gpio_init(USER_BUTTON_PIN, GPIO_IN); + gpio_init(BTN0_PIN, BTN0_MODE); gpio_init(RF24_SWITCH_CC2538_PIN, GPIO_OUT); gpio_init(RF24_SWITCH_AT86RF215_PIN, GPIO_OUT); diff --git a/boards/openmote-b/include/board.h b/boards/openmote-b/include/board.h index 381da9b982..0e49505b90 100644 --- a/boards/openmote-b/include/board.h +++ b/boards/openmote-b/include/board.h @@ -36,8 +36,8 @@ #define LED1_PIN GPIO_PIN(2, 7) #define LED2_PIN GPIO_PIN(2, 6) #define LED3_PIN GPIO_PIN(2, 5) -#define LED3_PIN GPIO_PIN(2, 5) -#define USER_BUTTON_PIN GPIO_PIN(2, 5) +#define BTN0_PIN GPIO_PIN(3, 5) +#define BTN0_MODE GPIO_IN #define RF24_SWITCH_CC2538_PIN GPIO_PIN(3, 4) /**< PD4 -- CC2538 */ #define RF24_SWITCH_AT86RF215_PIN GPIO_PIN(3, 3) /**< PD3 -- AT86RF215 */