diff options
Diffstat (limited to 'board/discovery/gpio.inc')
-rw-r--r-- | board/discovery/gpio.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/discovery/gpio.inc b/board/discovery/gpio.inc index bce256bef8..7f762017e3 100644 --- a/board/discovery/gpio.inc +++ b/board/discovery/gpio.inc @@ -6,14 +6,14 @@ */ /* Inputs with interrupt handlers are first for efficiency */ -GPIO_INT(USER_BUTTON, A, 0, GPIO_INT_BOTH, button_event) +GPIO_INT(USER_BUTTON, PIN(A, 0), GPIO_INT_BOTH, button_event) /* Outputs */ -GPIO(LED_BLUE, B, 6, GPIO_OUT_LOW) -GPIO(LED_GREEN, B, 7, GPIO_OUT_LOW) +GPIO(LED_BLUE, PIN(B, 6), GPIO_OUT_LOW) +GPIO(LED_GREEN, PIN(B, 7), GPIO_OUT_LOW) /* Unimplemented signals which we need to emulate for now */ UNIMPLEMENTED(ENTERING_RW) UNIMPLEMENTED(WP_L) -ALTERNATE(A, 0x0600, GPIO_ALT_USART, MODULE_UART, 0) +ALTERNATE(PIN_MASK(A, 0x0600), GPIO_ALT_USART, MODULE_UART, 0) |