mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
boards/openmote-b: fix button pin define
According to the schematics user button should be on `PD5` not `PC5` (so `GPIO_PIN(3, 5)`). Due to the super high values resistors being used for the external pullup it seems if you use a internal pullup it doesn't work.
This commit is contained in:
parent
70eef51cd8
commit
ebe010125b
@ -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);
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user