From b223c48f28413ac6008f0288433f7eb821a521d0 Mon Sep 17 00:00:00 2001
From: yincheng.zhong <634916154@qq.com>
Date: 星期三, 11 十二月 2024 10:55:14 +0800
Subject: [PATCH] V2

---
 Src/main.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Src/main.c b/Src/main.c
index bd66ef4..99e0f2a 100644
--- a/Src/main.c
+++ b/Src/main.c
@@ -667,7 +667,7 @@
 //delay_ms(1000);
 
     Program_Init();
-         if(HAL_UART_Receive_DMA(&huart1,m_EUART_DMA_RXBuf,EUART_RX_BUF_SIZE))
+    if(HAL_UART_Receive_DMA(&huart1,m_EUART_DMA_RXBuf,EUART_RX_BUF_SIZE))
     {
      Error_Handler();
     }
@@ -677,7 +677,7 @@
     Delay_Ms(10);
         dwt_configcontinuousframemode(124800);
         dwt_writetxfctrl(13, 0);
-        
+        dwt_starttx(DWT_START_TX_IMMEDIATE);
         while(1)
         {		
         IdleTask();	
@@ -771,7 +771,7 @@
   /** Configure LSE Drive Capability
   */
   HAL_PWR_EnableBkUpAccess();
-  __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_LOW);
+  __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_HIGH);
 
   /** Initializes the RCC Oscillators according to the specified parameters
   * in the RCC_OscInitTypeDef structure.

--
Gitblit v1.9.3