[Cryptech-Commits] [sw/stm32] 11/12: rename some defines
git at cryptech.is
git at cryptech.is
Mon May 16 09:43:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
fredrik at thulin.net pushed a commit to branch ft-alpha_board_bringup
in repository sw/stm32.
commit cc07ee6bfcf4721254145ef388196be82532fd4a
Author: Fredrik Thulin <fredrik at thulin.net>
AuthorDate: Sat May 14 16:08:19 2016 +0200
rename some defines
---
stm-init.c | 4 ++--
stm-uart.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/stm-init.c b/stm-init.c
index f82ed16..809b976 100644
--- a/stm-init.c
+++ b/stm-init.c
@@ -82,7 +82,7 @@ void stm_init(void)
static void MX_USART1_UART_Init(void)
{
huart_mgmt.Instance = USART1;
- huart_mgmt.Init.BaudRate = USART1_BAUD_RATE;
+ huart_mgmt.Init.BaudRate = USART_MGMT_BAUD_RATE;
huart_mgmt.Init.WordLength = UART_WORDLENGTH_8B;
huart_mgmt.Init.StopBits = UART_STOPBITS_1;
huart_mgmt.Init.Parity = UART_PARITY_NONE;
@@ -99,7 +99,7 @@ static void MX_USART1_UART_Init(void)
static void MX_USART2_UART_Init(void)
{
huart_user.Instance = USART2;
- huart_user.Init.BaudRate = USART2_BAUD_RATE;
+ huart_user.Init.BaudRate = USART_USER_BAUD_RATE;
huart_user.Init.WordLength = UART_WORDLENGTH_8B;
huart_user.Init.StopBits = UART_STOPBITS_1;
huart_user.Init.Parity = UART_PARITY_NONE;
diff --git a/stm-uart.h b/stm-uart.h
index 4334d27..2330c8b 100644
--- a/stm-uart.h
+++ b/stm-uart.h
@@ -37,8 +37,8 @@
#include "stm32f4xx_hal.h"
-#define USART1_BAUD_RATE 115200
-#define USART2_BAUD_RATE 115200
+#define USART_MGMT_BAUD_RATE 9600
+#define USART_USER_BAUD_RATE 9600
enum stm_uart_port {
STM_UART_USER,
More information about the Commits
mailing list