M4521_BSP V3.02.000
The Board Support Package for M4521
Functions | Variables
system_M4521.c File Reference

CMSIS Cortex-M4 Core Peripheral Access Layer Source File for M4521. More...

#include "M4521.h"
Include dependency graph for system_M4521.c:

Go to the source code of this file.

Functions

void SystemCoreClockUpdate (void)
 Updates the SystemCoreClock with current core Clock retrieved from cpu registers. More...
 
void SystemInit (void)
 Setup the microcontroller system. Initialize the System. More...
 

Variables

uint32_t SystemCoreClock = __SYSTEM_CLOCK
 
uint32_t CyclesPerUs = (__HSI / 1000000)
 
uint32_t PllClock = __HSI
 
uint32_t gau32ClkSrcTbl [] = {__HXT, __LXT, 0, __LIRC, 0, 0, 0, __HIRC}
 

Detailed Description

CMSIS Cortex-M4 Core Peripheral Access Layer Source File for M4521.

Version
V0.10
Revision
11
Date
15/09/02 10:02a
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2022 Nuvoton Technology Corp. All rights reserved.

Definition in file system_M4521.c.

Function Documentation

◆ SystemCoreClockUpdate()

void SystemCoreClockUpdate ( void  )

Updates the SystemCoreClock with current core Clock retrieved from cpu registers.

Update SystemCoreClock variable

Parameters
None
Returns
None

Definition at line 32 of file system_M4521.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SystemInit()

void SystemInit ( void  )

Setup the microcontroller system. Initialize the System.

Setup the microcontroller system. Initialize the System and update the SystemCoreClock variable.

Initialize the system

Parameters
None
Returns
None

Definition at line 76 of file system_M4521.c.

Here is the call graph for this function:

Variable Documentation

◆ CyclesPerUs

uint32_t CyclesPerUs = (__HSI / 1000000)

Cycles per micro second

Definition at line 25 of file system_M4521.c.

◆ gau32ClkSrcTbl

uint32_t gau32ClkSrcTbl[] = {__HXT, __LXT, 0, __LIRC, 0, 0, 0, __HIRC}

Definition at line 27 of file system_M4521.c.

◆ PllClock

uint32_t PllClock = __HSI

PLL Output Clock Frequency

Definition at line 26 of file system_M4521.c.

◆ SystemCoreClock

uint32_t SystemCoreClock = __SYSTEM_CLOCK

System Clock Frequency (Core Clock)

Definition at line 24 of file system_M4521.c.