Explorar el Código

MCxxx 使用外部晶振

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui hace 3 años
padre
commit
cc3059bf09
Se han modificado 2 ficheros con 1 adiciones y 3 borrados
  1. 0 2
      Applications/bsp/bsp.c
  2. 1 1
      Librarys/CMSIS/GD/GD32F30x/Source/system_gd32f30x.c

+ 0 - 2
Applications/bsp/bsp.c

@@ -13,8 +13,6 @@ void bsp_init(void){
 	gd32_bkp_init();
 	dbg_periph_enable(DBG_TIMER0_HOLD);
 	dbg_periph_enable(DBG_TIMER1_HOLD);
-	//dbg_periph_enable(DBG_TIMER2_HOLD);
-	//dbg_periph_enable(DBG_TIMER3_HOLD);
 	systick_open();
 	task_ticks_enable();
 	timer_count32_init();

+ 1 - 1
Librarys/CMSIS/GD/GD32F30x/Source/system_gd32f30x.c

@@ -35,7 +35,7 @@
 #define HXTAL_VALUE    ((uint32_t)8000000)
 
 #include "gd32f30x.h"
-
+#include "bsp/bsp.h"
 /* system frequency define */
 #define __IRC8M           (IRC8M_VALUE)            /* internal 8 MHz RC oscillator frequency */
 #define __HXTAL           (HXTAL_VALUE)            /* high speed crystal oscillator frequency */