mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
boards: use BTNx_MODE when defined
This commit is contained in:
parent
fd36c626a3
commit
187b79fa74
@ -27,6 +27,6 @@ void board_init(void)
|
||||
cpu_init();
|
||||
|
||||
/* initialize the mini's buttons */
|
||||
gpio_init(BTN0_PIN, GPIO_IN);
|
||||
gpio_init(BTN1_PIN, GPIO_IN);
|
||||
gpio_init(BTN0_PIN, BTN0_MODE);
|
||||
gpio_init(BTN1_PIN, BTN1_MODE);
|
||||
}
|
||||
|
@ -27,6 +27,6 @@ void board_init(void)
|
||||
cpu_init();
|
||||
|
||||
/* initialize the on board buttons */
|
||||
gpio_init(BTN0_PIN, GPIO_IN);
|
||||
gpio_init(BTN1_PIN, GPIO_IN);
|
||||
gpio_init(BTN0_PIN, BTN0_MODE);
|
||||
gpio_init(BTN1_PIN, BTN1_MODE);
|
||||
}
|
||||
|
@ -27,6 +27,6 @@ void board_init(void)
|
||||
cpu_init();
|
||||
|
||||
/* initialize the micro:bit's buttons */
|
||||
gpio_init(BTN0_PIN, GPIO_IN);
|
||||
gpio_init(BTN1_PIN, GPIO_IN);
|
||||
gpio_init(BTN0_PIN, BTN0_MODE);
|
||||
gpio_init(BTN1_PIN, BTN1_MODE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user