MINI58_BSP V3.01.005
The Board Support Package for Mini58 Series MCU
Functions | Variables
system_Mini58Series.c File Reference

Mini58 series system clock init code and assert handler. More...

#include <stdint.h>
#include "Mini58Series.h"
Include dependency graph for system_Mini58Series.c:

Go to the source code of this file.

Functions

void SystemInit (void)
 Check HIRC clock rate feed to HCLK. More...
 
void SystemCoreClockUpdate (void)
 This function is used to update the variable SystemCoreClock and must be called whenever the core clock is changed. More...
 

Variables

uint32_t SystemCoreClock = __HIRC
 
uint32_t __HSI = __HIRC
 
uint32_t PllClock = __HIRC
 
uint32_t CyclesPerUs
 

Detailed Description

Mini58 series system clock init code and assert handler.

Version
V1.00
Revision
3
Date
15/02/13 9:13a
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2015 Nuvoton Technology Corp. All rights reserved.

Definition in file system_Mini58Series.c.

Function Documentation

◆ SystemCoreClockUpdate()

void SystemCoreClockUpdate ( void  )

This function is used to update the variable SystemCoreClock and must be called whenever the core clock is changed.

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

Parameters
None.
Return values
None.

Definition at line 43 of file system_Mini58Series.c.

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

◆ SystemInit()

void SystemInit ( void  )

Check HIRC clock rate feed to HCLK.

Returns
none

Definition at line 31 of file system_Mini58Series.c.

Variable Documentation

◆ __HSI

uint32_t __HSI = __HIRC

Factory Default is internal high speed RC 44.2368M divided by 2

Definition at line 21 of file system_Mini58Series.c.

◆ CyclesPerUs

uint32_t CyclesPerUs

Cycles per micro second

Definition at line 23 of file system_Mini58Series.c.

◆ PllClock

uint32_t PllClock = __HIRC

PLL Output Clock Frequency

Definition at line 22 of file system_Mini58Series.c.

◆ SystemCoreClock

uint32_t SystemCoreClock = __HIRC

System Clock Frequency (Core Clock)

Definition at line 20 of file system_Mini58Series.c.