From 2d71e98b520d6d5ddfb279ff6a667125a344d9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 19 Oct 2020 16:49:32 +0200 Subject: [PATCH] [ion] n0100 Console: fix pin alternate function --- ion/src/device/n0100/drivers/config/console.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ion/src/device/n0100/drivers/config/console.h b/ion/src/device/n0100/drivers/config/console.h index 49df3c541..33c122577 100644 --- a/ion/src/device/n0100/drivers/config/console.h +++ b/ion/src/device/n0100/drivers/config/console.h @@ -13,7 +13,7 @@ using namespace Regs; constexpr static USART Port = USART(3); constexpr static GPIOPin RxPin = GPIOPin(GPIOC, 11); constexpr static GPIOPin TxPin = GPIOPin(GPIOD, 8); -constexpr static GPIO::AFR::AlternateFunction AlternateFunction = GPIO::AFR::AlternateFunction::AF8; +constexpr static GPIO::AFR::AlternateFunction AlternateFunction = GPIO::AFR::AlternateFunction::AF7; /* The baud rate of the UART is set by the following equation: * BaudRate = f/USARTDIV, where f is the clock frequency and USARTDIV a divider.