[Cryptech-Commits] [sw/stm32] branch master updated: Revert Peter's hardware flow control patch, as it sometimes causes corruption on the sending side of USART2 (user/RPC) under load.
git at cryptech.is
git at cryptech.is
Tue Jun 29 03:11:29 UTC 2021
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository sw/stm32.
The following commit(s) were added to refs/heads/master by this push:
new 6f16d4f Revert Peter's hardware flow control patch, as it sometimes causes corruption on the sending side of USART2 (user/RPC) under load.
6f16d4f is described below
commit 6f16d4fc32df8e9afd8bdc8bd2401a344750e63f
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Mon Jun 28 22:34:55 2021 -0400
Revert Peter's hardware flow control patch, as it sometimes causes
corruption on the sending side of USART2 (user/RPC) under load.
---
stm-uart.c | 28 ----------------------------
1 file changed, 28 deletions(-)
diff --git a/stm-uart.c b/stm-uart.c
index d07eec2..1f006b7 100644
--- a/stm-uart.c
+++ b/stm-uart.c
@@ -71,20 +71,6 @@ static void MX_DMA_Init(void)
/* USART1 init function */
static void MX_USART1_UART_Init(void)
{
- GPIO_InitTypeDef g;
- g.Mode = GPIO_MODE_AF_PP;
- g.Pull = GPIO_NOPULL;
- g.Speed = GPIO_SPEED_LOW;
- g.Alternate = GPIO_AF7_USART1;
-
- /* USART1_CTS */
- g.Pin = GPIO_PIN_11;
- HAL_GPIO_Init(GPIOA, &g);
-
- /* USART1_RTS */
- g.Pin = GPIO_PIN_12;
- HAL_GPIO_Init(GPIOA, &g);
-
huart_mgmt.Instance = USART1;
huart_mgmt.Init.BaudRate = USART_MGMT_BAUD_RATE;
huart_mgmt.Init.WordLength = UART_WORDLENGTH_8B;
@@ -106,20 +92,6 @@ static void MX_USART1_UART_Init(void)
/* USART2 init function */
static void MX_USART2_UART_Init(void)
{
- GPIO_InitTypeDef g;
- g.Mode = GPIO_MODE_AF_PP;
- g.Pull = GPIO_NOPULL;
- g.Speed = GPIO_SPEED_LOW;
- g.Alternate = GPIO_AF7_USART2;
-
- /* USART2_CTS */
- g.Pin = GPIO_PIN_0;
- HAL_GPIO_Init(GPIOA, &g);
-
- /* USART2_RTS */
- g.Pin = GPIO_PIN_1;
- HAL_GPIO_Init(GPIOA, &g);
-
huart_user.Instance = USART2;
huart_user.Init.BaudRate = USART_USER_BAUD_RATE;
huart_user.Init.WordLength = UART_WORDLENGTH_8B;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list