S32 SDK
S32K144 System Files

Detailed Description

This module covers the SoC support file for S32K144.

SystemInit method is called automatically from start-up code to do the minimum setup of the SoC. It disables the watchdog, enables FPU and the power mode protection if the corresponding feature macro is enabled.

SystemCoreClockUpdate method can be used at any time to update SystemCoreClock. It evaluates the clock register settings and calculates the current core clock.

SystemSoftwareReset method initiates a system reset.

Files

file  system_S32K144.h
 Device specific configuration file for S32K144.
 

Macros

#define SYSTEM_S32K144_H_
 
#define DISABLE_WDOG   1
 
#define CPU_XTAL_CLK_HZ   8000000u
 
#define CPU_INT_FAST_CLK_HZ   48000000u
 
#define DEFAULT_SYSTEM_CLOCK   48000000u
 

Functions

void SystemInit (void)
 Setup the SoC. More...
 
void SystemCoreClockUpdate (void)
 Updates the SystemCoreClock variable. More...
 
void SystemSoftwareReset (void)
 Initiates a system reset. More...
 

Variables

uint32_t SystemCoreClock
 System clock frequency (core clock) More...
 

Macro Definition Documentation

#define CPU_INT_FAST_CLK_HZ   48000000u

Definition at line 53 of file system_S32K144.h.

#define CPU_XTAL_CLK_HZ   8000000u

Definition at line 48 of file system_S32K144.h.

#define DEFAULT_SYSTEM_CLOCK   48000000u

Definition at line 58 of file system_S32K144.h.

#define DISABLE_WDOG   1

Definition at line 43 of file system_S32K144.h.

#define SYSTEM_S32K144_H_

Symbol preventing repeated inclusion

Definition at line 29 of file system_S32K144.h.

Function Documentation

void SystemCoreClockUpdate ( void  )

Updates the SystemCoreClock variable.

It must be called whenever the core clock is changed during program execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates the current core clock. This function must be called when user does not want to use clock manager component. If clock manager is used, the CLOCK_SYS_GetFreq function must be used with CORE_CLOCK parameter.

Definition at line 121 of file system_S32K144.c.

void SystemInit ( void  )

Setup the SoC.

This function disables the watchdog, enables FPU and the power mode protection if the corresponding feature macro is enabled. SystemInit is called from startup_device file.

Definition at line 65 of file system_S32K144.c.

void SystemSoftwareReset ( void  )

Initiates a system reset.

This function is used to initiate a system reset

Definition at line 176 of file system_S32K144.c.

Variable Documentation

uint32_t SystemCoreClock

System clock frequency (core clock)

The system clock frequency supplied to the SysTick timer and the processor core clock. This variable can be used by the user application to setup the SysTick timer or configure other parameters. It may also be used by debugger to query the frequency of the debug timer or configure the trace clock speed SystemCoreClock is initialized with a correct predefined value.

Definition at line 54 of file system_S32K144.c.