summaryrefslogtreecommitdiff
path: root/board/discovery
diff options
context:
space:
mode:
Diffstat (limited to 'board/discovery')
-rw-r--r--board/discovery/board.c6
-rw-r--r--board/discovery/gpio.inc2
2 files changed, 2 insertions, 6 deletions
diff --git a/board/discovery/board.c b/board/discovery/board.c
index 5548577943..1821cb6f7c 100644
--- a/board/discovery/board.c
+++ b/board/discovery/board.c
@@ -23,9 +23,3 @@ static void board_init(void)
gpio_enable_interrupt(GPIO_USER_BUTTON);
}
DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
-
-/* Pins with alternate functions */
-const struct gpio_alt_func gpio_alt_funcs[] = {
- {GPIO_A, 0x0600, GPIO_ALT_USART, MODULE_UART},
-};
-const int gpio_alt_funcs_count = ARRAY_SIZE(gpio_alt_funcs);
diff --git a/board/discovery/gpio.inc b/board/discovery/gpio.inc
index 4f09cc3ab3..91e4d9587b 100644
--- a/board/discovery/gpio.inc
+++ b/board/discovery/gpio.inc
@@ -15,3 +15,5 @@ GPIO(LED_GREEN, B, 7, GPIO_OUT_LOW, NULL)
/* Unimplemented signals which we need to emulate for now */
UNIMPLEMENTED(ENTERING_RW)
UNIMPLEMENTED(WP_L)
+
+ALTERNATE(A, 0x0600, GPIO_ALT_USART, MODULE_UART, 0)