M471M/R1/S BSP V3.01.000
The Board Support Package for M4521
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
13extern "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
40extern uint32_t SystemCoreClock;
41extern uint32_t CyclesPerUs;
42extern uint32_t PllClock;
54extern void SystemInit(void);
55
65extern void SystemCoreClockUpdate(void);
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* __SYSTEM_M471M_R1_S_H__ */
72
uint32_t CyclesPerUs
void SystemInit(void)
Setup the microcontroller system. Initialize the System and update the SystemCoreClock variable.
uint32_t PllClock
uint32_t SystemCoreClock
void SystemCoreClockUpdate(void)
Updates the SystemCoreClock with current core Clock retrieved from cpu registers.