34 #define _ASM_NOP_ asm("tnop") 39 #define CLOCK_DLY_1_CYC _ASM_NOP_ 40 #define CLOCK_DLY_2_CYC _ASM_NOP_;_ASM_NOP_ 41 #define CLOCK_DLY_3_CYC _ASM_NOP_;_ASM_NOP_;_ASM_NOP_ 42 #define CLOCK_DLY_4_CYC _ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_ 43 #define CLOCK_DLY_5_CYC _ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_ 44 #define CLOCK_DLY_6_CYC _ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_ 45 #define CLOCK_DLY_7_CYC _ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_ 46 #define CLOCK_DLY_8_CYC _ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_ 47 #define CLOCK_DLY_9_CYC _ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_ 48 #define CLOCK_DLY_10_CYC _ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_;_ASM_NOP_ 53 #ifndef SYSCLK_RC_CLOCK_EN 54 #define SYSCLK_RC_CLOCK_EN 0 unsigned char system_clk_type
void doubler_calibration(void)
This function performs to calibration the source clock.
void rc_48m_cal(void)
This function performs to select 48M RC as the system clock source.
static int clock_get_system_clk(void)
This function to get the system clock source.
Definition: clock.h:98
SYS_CLK_TypeDef
system clock type.
Definition: clock.h:62
void rc_32k_cal(void)
This function performs to select 32K as the system clock source.
void clock_32k_init(CLK_32K_TypeDef src)
This function serves to set 32k clock source.
CLK_32K_TypeDef
32K clock type.
Definition: clock.h:80
void rc_24m_cal(void)
This function performs to select 24M as the system clock source.
void clock_init(SYS_CLK_TypeDef SYS_CLK)
This function to select the system clock source.