| Nano100AN Series BSP V3.02.002 The Board Support Package for Nano100AN Series

system_Nano100Series.h
Go to the documentation of this file.
1 /**************************************************************************/
14 #ifndef __SYSTEM_NANO100SERIES_H__
15 #define __SYSTEM_NANO100SERIES_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 __LIRC (10000UL)
30 #define __HIRC __HIRC12M
31 #define __HSI (__HIRC12M) /* Factory Default is internal 12MHz */
32
33
34 extern uint32_t SystemCoreClock;
35 extern uint32_t CyclesPerUs;
47 extern void SystemCoreClockUpdate (void);
48 extern uint32_t SysGet_PLLClockFreq(void);
49
50 #ifdef __cplusplus
51 }
52 #endif
53
54 #endif //__SYSTEM_NANO100SERIES_H__
55
56
57 /*** (C) COPYRIGHT 2014 Nuvoton Technology Corp. ***/
SystemCoreClock
uint32_t SystemCoreClock
Definition: system_Nano100Series.c:20
SysGet_PLLClockFreq
uint32_t SysGet_PLLClockFreq(void)
Calculate current PLL clock frequency.
Definition: system_Nano100Series.c:28
CyclesPerUs
uint32_t CyclesPerUs
Definition: system_Nano100Series.c:21
SystemCoreClockUpdate
void SystemCoreClockUpdate(void)
Updates the SystemCoreClock with current core Clock retrieved from CPU registers.
Definition: system_Nano100Series.c:106