M480 BSP  V3.05.001
The Board Support Package for M480 Series
system_M480.h
Go to the documentation of this file.
1 /**************************************************************************/
10 #ifndef __SYSTEM_M480_H__
11 #define __SYSTEM_M480_H__
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #include <stdint.h>
18 
19 
20 /*----------------------------------------------------------------------------
21  Define clocks
22  *----------------------------------------------------------------------------*/
23 
24 #ifndef __HSI
25 #define __HSI (12000000UL)
26 #endif
27 
28 #ifndef __HXT
29 #define __HXT (12000000UL)
30 #endif
31 
32 #ifndef __LXT
33 #define __LXT (32768UL)
34 #endif
35 
36 #define __HIRC (12000000UL)
37 #define __LIRC (10000UL)
38 #define __SYS_OSC_CLK ( ___HSI) /* Main oscillator frequency */
39 
40 
41 #define __SYSTEM_CLOCK (1UL*__HXT)
42 
43 extern uint32_t SystemCoreClock;
44 extern uint32_t CyclesPerUs;
45 extern uint32_t PllClock;
57 extern void SystemInit (void);
58 
68 extern void SystemCoreClockUpdate (void);
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* __SYSTEM_M480_H__ */
75 
76 /*** (C) COPYRIGHT 2016 Nuvoton Technology Corp. ***/
uint32_t CyclesPerUs
Definition: system_M480.c:22
uint32_t PllClock
Definition: system_M480.c:23
uint32_t SystemCoreClock
Definition: system_M480.c:21
void SystemCoreClockUpdate(void)
Updates the SystemCoreClock with current core Clock retrieved from cpu registers.
Definition: system_M480.c:29
void SystemInit(void)
Setup the micro controller system. Initialize the System and update the SystemCoreClock variable.
Definition: system_M480.c:82