M471M/R1/S BSP
V3.01.000
The Board Support Package for M4521
Device
Nuvoton
M471M_R1_S
Include
system_M471M_R1_S.h
Go to the documentation of this file.
1
/******************************************************************************
2
* @file system_M471M_R1_S.h
3
* @brief CMSIS Cortex-M4 Core Peripheral Access Layer Header File for M471M/R1/S
4
*
5
* SPDX-License-Identifier: Apache-2.0
6
* @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
7
*****************************************************************************/
8
9
#ifndef __SYSTEM_M471M_R1_S_H__
10
#define __SYSTEM_M471M_R1_S_H__
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
#include <stdint.h>
17
18
/*---------------------------------------------------------------------------------------------------------*/
19
/* Macro Definition */
20
/*---------------------------------------------------------------------------------------------------------*/
21
#ifndef DEBUG_PORT
22
# define DEBUG_PORT UART0
23
#endif
24
25
26
/*----------------------------------------------------------------------------
27
Define clocks
28
*----------------------------------------------------------------------------*/
29
30
#define __HSI (12000000UL)
31
#define __HXT (12000000UL)
32
#define __LXT (32768UL)
33
#define __HIRC (22118400UL)
34
#define __LIRC (10000UL)
35
#define __SYS_OSC_CLK ( ___HSI)
/* Main oscillator frequency */
36
37
38
#define __SYSTEM_CLOCK (1*__HXT)
39
40
extern
uint32_t
SystemCoreClock
;
41
extern
uint32_t
CyclesPerUs
;
42
extern
uint32_t
PllClock
;
54
extern
void
SystemInit
(
void
);
55
65
extern
void
SystemCoreClockUpdate
(
void
);
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* __SYSTEM_M471M_R1_S_H__ */
72
CyclesPerUs
uint32_t CyclesPerUs
Definition:
system_M471M_R1_S.c:21
SystemInit
void SystemInit(void)
Setup the microcontroller system. Initialize the System and update the SystemCoreClock variable.
Definition:
system_M471M_R1_S.c:72
PllClock
uint32_t PllClock
Definition:
system_M471M_R1_S.c:22
SystemCoreClock
uint32_t SystemCoreClock
Definition:
system_M471M_R1_S.c:20
SystemCoreClockUpdate
void SystemCoreClockUpdate(void)
Updates the SystemCoreClock with current core Clock retrieved from cpu registers.
Definition:
system_M471M_R1_S.c:28
Generated on Wed Feb 15 2023 14:24:14 for M471M/R1/S BSP by
1.9.3