1
0
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:
dylad 2021-03-15 21:26:50 +01:00
parent fd36c626a3
commit 187b79fa74
3 changed files with 6 additions and 6 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}