TMPM4G9  V1.0.0.0
system_TRMOSC.c File Reference

TRMOSC Sample Application. More...

#include "TMPM4Gx.h"

Macros

#define SIWDEN_Val   (0x00000000UL) /* SIWD Disable */
 
#define SIWDCR_Val   (0x000000B1UL) /* SIWD Disable code */
 
#define IOSC_10M   (10000000UL)
 
#define IXTALH   IOSC_10M /* Internal high-speed oscillator freq */
 
#define CORE_TALH   (IXTALH)
 
#define __CORE_CLK   (CORE_TALH)
 
#define __CORE_SYS   (__CORE_CLK)
 

Functions

void SystemCoreClockUpdate (void)
 Update SystemCoreClock according register values. More...
 
void SystemInit (void)
 Setup the microcontroller system. Initialize the System. More...
 

Variables

uint32_t SystemCoreClock = __CORE_SYS
 

Detailed Description

TRMOSC Sample Application.

Version
1.0.0.0
Date
2017-11-15

DO NOT USE THIS SOFTWARE WITHOUT THE SOFTWARE LISENCE AGREEMENT.

Copyright(C) Toshiba Electronic Device Solutions Corporation 2019

Macro Definition Documentation

§ __CORE_CLK

#define __CORE_CLK   (CORE_TALH)

§ __CORE_SYS

#define __CORE_SYS   (__CORE_CLK)

§ CORE_TALH

#define CORE_TALH   (IXTALH)

§ IOSC_10M

#define IOSC_10M   (10000000UL)

§ IXTALH

#define IXTALH   IOSC_10M /* Internal high-speed oscillator freq */

§ SIWDCR_Val

#define SIWDCR_Val   (0x000000B1UL) /* SIWD Disable code */

§ SIWDEN_Val

#define SIWDEN_Val   (0x00000000UL) /* SIWD Disable */

Function Documentation

§ SystemCoreClockUpdate()

void SystemCoreClockUpdate ( void  )

Update SystemCoreClock according register values.

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

Initialize the system

Parameters
none
Returns
none

§ 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

Variable Documentation

§ SystemCoreClock

uint32_t SystemCoreClock = __CORE_SYS

System Clock Frequency (Core Clock)