| Nano103 BSP V3.01.002 The Board Support Package for Nano103 Series

system_Nano103.h
Go to the documentation of this file.
1 /**************************************************************************/
14 #ifndef __SYSTEM_NANO103_H__
15 #define __SYSTEM_NANO103_H__
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21
22 /*----------------------------------------------------------------------------
23 Define SYSCLK
24 *----------------------------------------------------------------------------*/
25
26 #define __HXT (12000000UL)
27 #define __LXT (32768UL)
28 #define __HIRC12M (12000000UL)
29 #define __HIRC16M (16000000UL)
30 #define __LIRC (10000UL)
31 #define __HIRC36M (36000000UL)
32 #define __MIRC (4000000UL)
33 #define __HIRC __HIRC12M /* HIRC0 at 12MHz as default HIRC*/
34 #define __HSI (__HIRC12M) /* Factory Default is internal 12MHz */
35
36
37 extern uint32_t SystemCoreClock;
38 extern uint32_t CyclesPerUs;
50 extern void SystemCoreClockUpdate (void);
51 extern uint32_t SysGet_PLLClockFreq(void);
52
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif //__SYSTEM_NANO103_H__
58
59
60 /*** (C) COPYRIGHT 2015 Nuvoton Technology Corp. ***/
SystemCoreClock
uint32_t SystemCoreClock
Definition: system_Nano103.c:20
SysGet_PLLClockFreq
uint32_t SysGet_PLLClockFreq(void)
Calculate current PLL clock frequency.
Definition: system_Nano103.c:28
SystemCoreClockUpdate
void SystemCoreClockUpdate(void)
Updates the SystemCoreClock with current core Clock retrieved from CPU registers.
Definition: system_Nano103.c:134
CyclesPerUs
uint32_t CyclesPerUs
Definition: system_Nano103.c:21