changeset 895:94535e672583 Evo_2_23 tip

Zusammenf?hren
author heinrichsweikamp
date Wed, 18 Sep 2024 14:31:06 +0200
parents 9e2f9b91e827 (diff) 1b05a84f6d0f (current diff)
children
files
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Small_CPU/Src/uart.c	Wed Sep 11 22:32:05 2024 +0200
+++ b/Small_CPU/Src/uart.c	Wed Sep 18 14:31:06 2024 +0200
@@ -130,7 +130,7 @@
 	GPIO_InitStruct.Pin = GPIO_PIN_11 | GPIO_PIN_12;
 	GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
 	GPIO_InitStruct.Pull = GPIO_NOPULL;
-	GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
+	GPIO_InitStruct.Speed = GPIO_SPEED_FAST;
 	GPIO_InitStruct.Alternate = GPIO_AF8_USART6;
 	HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
 
@@ -141,7 +141,7 @@
 	hdma_usart6_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;
 	hdma_usart6_rx.Init.PeriphInc = DMA_PINC_DISABLE;
 	hdma_usart6_rx.Init.MemInc = DMA_MINC_ENABLE;
-	hdma_usart6_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
+	hdma_usart6_rx.Init.PeriphDataAlignment = DMA_MDATAALIGN_BYTE;
 	hdma_usart6_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
 	hdma_usart6_rx.Init.Mode = DMA_NORMAL;
 	hdma_usart6_rx.Init.Priority = DMA_PRIORITY_LOW;
@@ -156,7 +156,7 @@
 	hdma_usart6_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
 	hdma_usart6_tx.Init.PeriphInc = DMA_PINC_DISABLE;
 	hdma_usart6_tx.Init.MemInc = DMA_MINC_ENABLE;
-	hdma_usart6_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
+	hdma_usart6_tx.Init.PeriphDataAlignment = DMA_MDATAALIGN_BYTE;
 	hdma_usart6_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
 	hdma_usart6_tx.Init.Mode = DMA_NORMAL;
 	hdma_usart6_tx.Init.Priority = DMA_PRIORITY_LOW;