diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-07-28 11:32:56 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-07-28 11:32:56 -0400 |
commit | ef0784afe6f142b8549ecf7630cbbd5ed627bd36 (patch) | |
tree | c852aa7e7d8d4de7eeced3c571868b493ab2aebb /src/stm32f4/serial.c | |
parent | 7d4c475e52a17d5511288c41a0b6abff46bb675f (diff) | |
download | kutter-ef0784afe6f142b8549ecf7630cbbd5ed627bd36.tar.gz kutter-ef0784afe6f142b8549ecf7630cbbd5ed627bd36.tar.xz kutter-ef0784afe6f142b8549ecf7630cbbd5ed627bd36.zip |
stm32f4: Encode mode/func into single parameter of gpio_peripheral
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32f4/serial.c')
-rw-r--r-- | src/stm32f4/serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stm32f4/serial.c b/src/stm32f4/serial.c index 525e4493..f3087f4c 100644 --- a/src/stm32f4/serial.c +++ b/src/stm32f4/serial.c @@ -28,8 +28,8 @@ serial_init(void) NVIC_SetPriority(USART2_IRQn, 0); NVIC_EnableIRQ(USART2_IRQn); - gpio_peripheral(GPIO('A', 2), GPIO_FUNCTION, 7, 0); - gpio_peripheral(GPIO('A', 3), GPIO_FUNCTION, 7, 1); + gpio_peripheral(GPIO('A', 2), GPIO_FUNCTION(7), 0); + gpio_peripheral(GPIO('A', 3), GPIO_FUNCTION(7), 1); } DECL_INIT(serial_init); |