From 65b5428a731a94493c33dbc4bebfe63c5e0c5b13 Mon Sep 17 00:00:00 2001
From: QuakeGod <QuakeGod@sina.com>
Date: 星期一, 17 十月 2022 23:43:37 +0800
Subject: [PATCH] master fix HSE_VALUE

---
 Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_rcc.h |    2 +-
 Inc/GlobalDef.h                                     |    4 ++--
 Inc/stm32f0xx_hal_conf.h                            |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_rcc.h b/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_rcc.h
index 5738d95..93f2327 100644
--- a/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_rcc.h
+++ b/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_rcc.h
@@ -129,7 +129,7 @@
   * @{
   */
 #if !defined  (HSE_VALUE)
-#define HSE_VALUE    12000000U  /*!< Value of the HSE oscillator in Hz */
+#define HSE_VALUE    8000000U  /*!< Value of the HSE oscillator in Hz */
 #endif /* HSE_VALUE */
 
 #if !defined  (HSI_VALUE)
diff --git a/Inc/GlobalDef.h b/Inc/GlobalDef.h
index 6918fcc..03f09b6 100644
--- a/Inc/GlobalDef.h
+++ b/Inc/GlobalDef.h
@@ -44,8 +44,8 @@
 	BOARD_V50_RADIO = 15, 
 };
 
-#define BOARD_TYPE 14
-#define XLAT_FREQ 12
+#define BOARD_TYPE 9
+#define XLAT_FREQ 8
 
 
 #define GetBoardType() (BOARD_TYPE)
diff --git a/Inc/stm32f0xx_hal_conf.h b/Inc/stm32f0xx_hal_conf.h
index 19f4c20..a90c873 100644
--- a/Inc/stm32f0xx_hal_conf.h
+++ b/Inc/stm32f0xx_hal_conf.h
@@ -89,7 +89,7 @@
   *        (when HSE is used as system clock source, directly or through the PLL).  
   */
 #if !defined  (HSE_VALUE) 
-  #define HSE_VALUE    ((uint32_t)12000000) /*!< Value of the External oscillator in Hz */
+  #define HSE_VALUE    ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */
 #endif /* HSE_VALUE */
 
 /**

--
Gitblit v1.9.1