![]() |
MCUXpresso SDK API Reference Manual
Rev 2.16.000
NXP Semiconductors
|
The MCUXpresso SDK provides APIs for MCUXpresso SDK devices' src operation.
The System Reset Controller(SRC) is responsible for generation of all reset signals and the boot argument latching. To get the latched boot arguments, the driver provides "Latched Boot Arguments Related Interfaces" function group, all APIs in this group can be used to get the latched boot arguments. There are four situations cause an certain reset event:
Driver version | |
#define | FSL_SRC_DRIVER_VERSION (MAKE_VERSION(2, 0, 1)) |
SRC driver version 2.0.1. More... | |
Core Reset release | |
void | SRC_ReleaseCM7 (SRC_GENERAL_Type *base) |
Releases related core reset operation. More... | |
Latched Boot Arguments Related Interfaces | |
static uint32_t | SRC_GetBootConfig (SRC_GENERAL_Type *base) |
Gets Boot configuration. More... | |
static uint8_t | SRC_GetBootMode (SRC_GENERAL_Type *base) |
Gets the latched state of the BOOT_MODE1 and BOOT_MODE0 signals. More... | |
Global System Related Interfaces | |
void | SRC_SetGlobalSystemResetMode (SRC_GENERAL_Type *base, src_reset_source_t resetSource, src_reset_mode_t resetMode) |
Sets the reset mode of global system reset source. More... | |
static uint32_t | SRC_GetResetStatusFlags (SRC_GENERAL_Type *base) |
Gets global system reset status flags. More... | |
static void | SRC_ClearGlobalSystemResetStatus (SRC_GENERAL_Type *base, uint32_t mask) |
Clears the status of global reset. More... | |
General Purpose Registers Related Interfaces | |
static void | SRC_SetGeneralPurposeRegister (SRC_GENERAL_Type *base, src_general_purpose_register_index_t index, uint32_t value) |
Sets value to general purpose registers. More... | |
static uint32_t | SRC_GetGeneralPurposeRegister (SRC_GENERAL_Type *base, src_general_purpose_register_index_t index) |
Gets the value from general purpose registers. More... | |
SRC Mix Slice Related Interfaces | |
static void | SRC_SLICE_AllowUserModeAccess (SRC_MIX_SLICE_Type *base, bool enable) |
Allows/disallows user mode access. More... | |
static void | SRC_SLICE_AllowNonSecureModeAccess (SRC_MIX_SLICE_Type *base, bool enable) |
Allows/disallows non secure mode access. More... | |
static void | SRC_SLICE_LockAccessSetting (SRC_MIX_SLICE_Type *base) |
Locks the setting of user mode access and non secure mode access. More... | |
static void | SRC_SLICE_SetWhiteList (SRC_MIX_SLICE_Type *base, uint8_t domainId) |
Sets the domain ID white list for the selected slice. More... | |
static void | SRC_SLICE_LockWhiteList (SRC_MIX_SLICE_Type *base) |
Locks the value of white list. More... | |
void | SRC_SLICE_SoftwareControl (SRC_MIX_SLICE_Type *base, src_power_ctrl_step_t step) |
brief Set software control step for slice power on/off sequence. More... | |
void | SRC_SLICE_PowerDown (SRC_MIX_SLICE_Type *base, bool powerOff) |
brief Power on/off slice. More... | |
void | SRC_SLICE_ControlByCpuLowPowerMode (SRC_MIX_SLICE_Type *base, uint32_t domainMap, src_power_level_t level) |
#define FSL_SRC_DRIVER_VERSION (MAKE_VERSION(2, 0, 1)) |
enum src_core_name_t |
enum src_reset_source_t |
enum src_reset_mode_t |
enum src_power_level_t |
void SRC_ReleaseCM7 | ( | SRC_GENERAL_Type * | base | ) |
The core reset will be held until the boot core to release it.
base | SRC peripheral base address. |
|
inlinestatic |
base | SRC peripheral base address. |
|
inlinestatic |
base | SRC peripheral base address. |
void SRC_SetGlobalSystemResetMode | ( | SRC_GENERAL_Type * | base, |
src_reset_source_t | resetSource, | ||
src_reset_mode_t | resetMode | ||
) |
This function sets the selected mode of the input global system reset sources.
base | SRC peripheral base address. |
resetSource | The global system reset source. See src_reset_source_t for more details. |
resetMode | The reset mode of each reset source. See src_reset_mode_t for more details. |
|
inlinestatic |
base | SRC peripheral base address. |
|
inlinestatic |
base | SRC peripheral base address. |
mask | The reset status flag to be cleared. See _src_reset_status_flags for more details. |
|
inlinestatic |
base | SRC peripheral base address. |
index | The index of GPRx register array. Please refer to src_general_purpose_register_index_t. |
value | Setting value for GPRx register. |
|
inlinestatic |
base | SRC peripheral base address. |
index | The index of GPRx register array. Please refer to src_general_purpose_register_index_t. |
|
inlinestatic |
base | SRC peripheral base address. |
enable | Used to control user mode access.
|
|
inlinestatic |
base | SRC peripheral base address. |
enable | Used to control non secure mode access.
|
|
inlinestatic |
base | SRC peripheral base address. |
|
inlinestatic |
base | SRC peripheral base address. |
domainId | The core to access registers, should be the OR'ed value of src_core_name_t. |
|
inlinestatic |
base | SRC peripheral base address. |
void SRC_SLICE_SoftwareControl | ( | SRC_MIX_SLICE_Type * | base, |
src_power_ctrl_step_t | step | ||
) |
param base SRC peripheral base address. param step Slice power on/off sequence step. See src_power_ctrl_step_t for more details.
void SRC_SLICE_PowerDown | ( | SRC_MIX_SLICE_Type * | base, |
bool | powerOff | ||
) |
param base SRC peripheral base address. param powerOff Used to trigger slice power on/off sequence.