From 7746b32e17571b0e0cbdcbd101787b742d35c825 Mon Sep 17 00:00:00 2001 From: Anton Staaf Date: Mon, 14 Jul 2014 15:33:29 -0700 Subject: GPIO: Move definition of alternate functions to gpio.inc This is a straightforward conversion of existing tables into X-Macro style definitions for the GPIO alternate functions. This change in itself, is not particularly powerful, but having all GPIO settings in a single file makes a board easier to understand. Signed-off-by: Anton Staaf BRANCH=none TEST=make buildall -j Followed by manual testing of interrupt on change and UART functionality on STM32F0 based discovery board. Change-Id: Ib7f1f014f4bd289d7c0ac3100470ba2dc71ca579 Reviewed-on: https://chromium-review.googlesource.com/207987 Reviewed-by: Randall Spangler Tested-by: Anton Staaf Commit-Queue: Anton Staaf --- board/discovery/board.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'board/discovery/board.c') 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); -- cgit v1.2.1