#include"gd32f30x.h"#include"gd32f307c_eval.h"#include<stdio.h>intmain(void){gd_eval_com_init(EVAL_COM0);printf("\r\nCK_SYS switch test demo\r\n");/* disable the USART */usart_disable(EVAL_COM0);/* switch system clock to 36MHz by HXTAL */switch_system_clock_to_36m_hxtal();gd_eval_com_init(EVAL_COM0);/* print out the clock frequency of system */printf("\r\nCK_SYS is %d",rcu_clock_freq_get(CK_SYS));_delay(1000);/* switch system clock to 72MHz by IRC8M */switch_system_clock_to_72m_irc8m();gd_eval_com_init(EVAL_COM0);/* print out the clock frequency of system */printf("\r\nCK_SYS is %d",rcu_clock_freq_get(CK_SYS));while(1){}}