STM32的函数配置
#define RCC_PLLMul_5 ((uint32_t)0x000C0000)
void SetSysClock_hp(void)
{
RCC_Configuration(RCC_PLLMul_5);
SystemCoreClockUpdate();}
GD32的函数配置
#define RCC_PLLMul_12 ((uint32_t)0x00280000)#define GD32_RCC_PLLMul_27 (0x08000000 | RCC_PLLMul_12) //void SetSysClock_hp(void)void SetSysClock_hp(void){ RCC_Configuration(GD32_RCC_PLLMul_27); SystemCoreClockUpdate();// return(0);}GD32的Device要选择STM32F103C8,但是Flash Doenload 要选着GD的pack。