NANO102/112 BSP V3.03.003
The Board Support Package for Nano102/112 Series
system_Nano1X2Series.h
Go to the documentation of this file.
1/**************************************************************************/
14#ifndef __SYSTEM_NANO1X2SERIES_H__
15#define __SYSTEM_NANO1X2SERIES_H__
16
17#ifdef __cplusplus
18extern "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 __HIRC __HIRC12M
32#define __HSI (__HIRC12M) /* Factory Default is internal 12MHz */
33
34
35extern uint32_t SystemCoreClock;
36extern uint32_t CyclesPerUs;
48extern void SystemCoreClockUpdate (void);
49extern uint32_t SysGet_PLLClockFreq(void);
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif //__SYSTEM_NANO1X2SERIES_H__
56
57
58/*** (C) COPYRIGHT 2013 Nuvoton Technology Corp. ***/
uint32_t CyclesPerUs
uint32_t SystemCoreClock
uint32_t SysGet_PLLClockFreq(void)
Calculate current PLL clock frequency.
void SystemCoreClockUpdate(void)
Updates the SystemCoreClock with current core Clock retrieved from CPU registers.