MINI55_BSP
V3.02.004
The Board Support Package for Mini55 Series MCU
Device
Nuvoton
Mini55Series
Include
system_Mini55Series.h
Go to the documentation of this file.
1
/**************************************************************************/
14
#ifndef __SYSTEM_MINI55SERIES_H__
15
#define __SYSTEM_MINI55SERIES_H__
16
17
#ifdef __cplusplus
18
extern
"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 __IRC44M (44236800UL)
/* Internal high speed RC oscillator will be trimmed to 44.2368MHz */
32
#define __IRC48M (48000000UL)
/* Internal high speed RC will be trimmed to 48MHz */
33
#define __IRC44M_DIV2 (22118400UL)
/* Clock output of Internal high speed RC 44.2368M divided by 2 */
34
#define __IRC48M_DIV2 (24000000UL)
/* Clock output of Internal high speed RC 48M divided by 2 */
35
#define __IRC10K (10000UL)
36
#define __XTAL __XTAL12M
37
38
#define __SYSTEM_CLOCK (1*__XTAL)
39
40
extern
uint32_t
__HSI
;
41
extern
uint32_t
SystemCoreClock
;
42
extern
uint32_t
CyclesPerUs
;
54
extern
void
SystemCoreClockUpdate
(
void
);
55
extern
int32_t
SystemInit
(
void
);
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
//__SYSTEM_MINI55SERIES_H__
62
63
64
/*** (C) COPYRIGHT 2014 Nuvoton Technology Corp. ***/
SystemInit
int32_t SystemInit(void)
Check HIRC clock rate feed to HCLK.
Definition:
system_Mini55Series.c:31
__HSI
uint32_t __HSI
Definition:
system_Mini55Series.c:21
CyclesPerUs
uint32_t CyclesPerUs
Definition:
system_Mini55Series.c:23
SystemCoreClock
uint32_t SystemCoreClock
Definition:
system_Mini55Series.c:22
SystemCoreClockUpdate
void SystemCoreClockUpdate(void)
Updates the SystemCoreClock with current core Clock retrieved from CPU registers.
Definition:
system_Mini55Series.c:59
Generated on Wed Mar 1 2023 10:34:01 for MINI55_BSP by
1.9.3