2021-02-18 13:29:12 +08:00
|
|
|
#ifndef __SYSTEM_SWM320_H__
|
|
|
|
#define __SYSTEM_SWM320_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2021-05-06 10:10:29 +08:00
|
|
|
extern "C" {
|
2021-02-18 13:29:12 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2021-05-06 10:10:29 +08:00
|
|
|
extern uint32_t SystemCoreClock; // System Clock Frequency (Core Clock)
|
|
|
|
extern uint32_t CyclesPerUs; // Cycles per micro second
|
2021-02-18 13:29:12 +08:00
|
|
|
|
|
|
|
|
2021-05-06 10:10:29 +08:00
|
|
|
extern void SystemInit(void);
|
|
|
|
|
|
|
|
extern void SystemCoreClockUpdate (void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern void switchCLK_20MHz(void);
|
|
|
|
extern void switchCLK_40MHz(void);
|
|
|
|
extern void switchCLK_32KHz(void);
|
|
|
|
extern void switchCLK_XTAL(void);
|
|
|
|
extern void switchCLK_PLL(void);
|
|
|
|
|
|
|
|
extern void PLLInit(void);
|
2021-02-18 13:29:12 +08:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //__SYSTEM_SWM320_H__
|