本帖最后由 nongfuxu 于 2021-4-25 22:54 编辑
应该是CLK_SetSysClkSource(源);
/* 内部RC16MHz->外部晶体12MHz = Switch system clock source to XTAL. */
CLK_SetSysClkSource(ClkSysSrcXTAL);
typedef enum en_clk_sys_source
{
ClkSysSrcHRC = 0u, ///< The system clock source is HRC.
ClkSysSrcMRC = 1u, ///< The system clock source is MRC.
ClkSysSrcLRC = 2u, ///< The system clock source is LRC.
ClkSysSrcXTAL = 3u, ///< The system clock source is XTAL.
ClkSysSrcXTAL32 = 4u, ///< The system clock source is XTAL32.
CLKSysSrcMPLL = 5u, ///< The system clock source is MPLL.
}en_clk_sys_source_t;
|