This module covers the SoC support file for S32K118.
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_S32K118.h |
Device specific configuration file for S32K118. | |
Macros | |
#define | SYSTEM_S32K118_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... | |
#define CPU_INT_FAST_CLK_HZ 48000000u |
Definition at line 52 of file system_S32K118.h.
#define CPU_XTAL_CLK_HZ 8000000u |
Definition at line 47 of file system_S32K118.h.
#define DEFAULT_SYSTEM_CLOCK 48000000u |
Definition at line 57 of file system_S32K118.h.
#define DISABLE_WDOG 1 |
Definition at line 42 of file system_S32K118.h.
#define SYSTEM_S32K118_H_ |
Symbol preventing repeated inclusion
Definition at line 28 of file system_S32K118.h.
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 99 of file system_S32K118.c.
void SystemInit | ( | void | ) |
Setup the SoC.
This function disables the watchdog. if the corresponding feature macro is enabled. SystemInit is called from startup_device file.
Definition at line 64 of file system_S32K118.c.
void SystemSoftwareReset | ( | void | ) |
Initiates a system reset.
This function is used to initiate a system reset
Definition at line 156 of file system_S32K118.c.
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 53 of file system_S32K118.c.