MINI51DE_BSP V3.02.004
The Board Support Package for Mini51DE Series MCU
system_Mini51Series.h
Go to the documentation of this file.
1/**************************************************************************/
14#ifndef __SYSTEM_MINI51SERIES_H__
15#define __SYSTEM_MINI51SERIES_H__
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21/*---------------------------------------------------------------------------------------------------------*/
22/* Macro Definition */
23/*---------------------------------------------------------------------------------------------------------*/
24
25/*----------------------------------------------------------------------------
26 Define SYSCLK
27 *----------------------------------------------------------------------------*/
28
29#define __XTAL12M (12000000UL)
30#define __XTAL32K (32768UL)
31#define __IRC22M (22118400UL)
32#define __IRC10K (10000UL)
33#define __XTAL __XTAL12M
34#define __HSI (__IRC22M) /* Factory Default is internal 22MHz */
35
36
37extern uint32_t SystemCoreClock;
38extern uint32_t CyclesPerUs;
50extern void SystemCoreClockUpdate (void);
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif //__SYSTEM_MINI51SERIES_H__
57
58
59/*** (C) COPYRIGHT 2013 Nuvoton Technology Corp. ***/
uint32_t CyclesPerUs
uint32_t SystemCoreClock
void SystemCoreClockUpdate(void)
Updates the SystemCoreClock with current core Clock retrieved from CPU registers.