| MINI58_BSP V3.01.003 The Board Support Package for Mini58 Series MCU

system_Mini58Series.h
Go to the documentation of this file.
1/**************************************************************************/
14#ifndef __SYSTEM_MINI58SERIES_H__
15#define __SYSTEM_MINI58SERIES_H__
16
17#ifdef __cplusplus
18 extern "C" {
19#endif
20
21/*---------------------------------------------------------------------------------------------------------*/
22/* Macro Definition */
23/*---------------------------------------------------------------------------------------------------------*/
24
25/*----------------------------------------------------------------------------
26 Define SYSCLK
27 *----------------------------------------------------------------------------*/
28#define __XTAL12M (12000000UL)
29#define __XTAL32K (32768UL)
30#define __IRC10K (10000UL)
31#define __XTAL __XTAL12M
32#define __HXT __XTAL
33#define __HIRC (22118400UL) /* Clock output of Internal high speed RC 22.1184M */
34
35 extern uint32_t __HSI;
36 extern uint32_t SystemCoreClock;
37 extern uint32_t CyclesPerUs;
38 extern uint32_t PllClock;
49 extern void SystemCoreClockUpdate (void);
50 extern void SystemInit (void);
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif //__SYSTEM_MINI58SERIES_H__
57
58
59/*** (C) COPYRIGHT 2015 Nuvoton Technology Corp. ***/
__HSI
uint32_t __HSI
Definition: system_Mini58Series.c:21
CyclesPerUs
uint32_t CyclesPerUs
Definition: system_Mini58Series.c:23
SystemInit
void SystemInit(void)
Check HIRC clock rate feed to HCLK.
Definition: system_Mini58Series.c:31
PllClock
uint32_t PllClock
Definition: system_Mini58Series.c:22
SystemCoreClock
uint32_t SystemCoreClock
Definition: system_Mini58Series.c:20
SystemCoreClockUpdate
void SystemCoreClockUpdate(void)
Updates the SystemCoreClock with current core Clock retrieved from CPU registers.
Definition: system_Mini58Series.c:43