M480 BSP
V3.05.006
The Board Support Package for M480 Series
Device
Nuvoton
M480
Include
system_M480.h
Go to the documentation of this file.
1
/**************************************************************************/
10
#ifndef __SYSTEM_M480_H__
11
#define __SYSTEM_M480_H__
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
#include <stdint.h>
18
19
20
/*----------------------------------------------------------------------------
21
Define clocks
22
*----------------------------------------------------------------------------*/
23
24
#ifndef __HSI
25
#define __HSI (12000000UL)
26
#endif
27
28
#ifndef __HXT
29
#define __HXT (12000000UL)
30
#endif
31
32
#ifndef __LXT
33
#define __LXT (32768UL)
34
#endif
35
36
#define __HIRC (12000000UL)
37
#define __LIRC (10000UL)
38
#define __SYS_OSC_CLK ( ___HSI)
/* Main oscillator frequency */
39
40
41
#define __SYSTEM_CLOCK (1UL*__HXT)
42
43
extern
uint32_t
SystemCoreClock
;
44
extern
uint32_t
CyclesPerUs
;
45
extern
uint32_t
PllClock
;
57
extern
void
SystemInit
(
void
);
58
68
extern
void
SystemCoreClockUpdate
(
void
);
69
70
#ifdef __cplusplus
71
}
72
#endif
73
74
#endif
/* __SYSTEM_M480_H__ */
75
76
/*** (C) COPYRIGHT 2016 Nuvoton Technology Corp. ***/
CyclesPerUs
uint32_t CyclesPerUs
Definition:
system_M480.c:22
SystemInit
void SystemInit(void)
Setup the micro controller system. Initialize the System and update the SystemCoreClock variable.
Definition:
system_M480.c:82
PllClock
uint32_t PllClock
Definition:
system_M480.c:23
SystemCoreClock
uint32_t SystemCoreClock
Definition:
system_M480.c:21
SystemCoreClockUpdate
void SystemCoreClockUpdate(void)
Updates the SystemCoreClock with current core Clock retrieved from cpu registers.
Definition:
system_M480.c:29
Generated on Fri Jan 12 2024 10:46:53 for M480 BSP by
1.9.3