MTB CAT1 Peripheral driver library
Cortex-M7 Control

General Description

Functions

uint32_t Cy_SysGetCM7Status (uint8_t core)
 Gets the Cortex-M7 core power mode. More...
 
void Cy_SysEnableCM7 (uint8_t core, uint32_t vectorTableOffset)
 Enables the Cortex-M7 core. More...
 
void Cy_SysDisableCM7 (uint8_t core)
 Disables the Cortex-M7 core. More...
 
void Cy_SysRetainCM7 (uint8_t core)
 Retains the Cortex-M7 core. More...
 
void Cy_SysResetCM7 (uint8_t core)
 Resets the Cortex-M7 core. More...
 

Function Documentation

◆ Cy_SysGetCM7Status()

uint32_t Cy_SysGetCM7Status ( uint8_t  core)

Gets the Cortex-M7 core power mode.

Parameters
coreCore type (CM7_0 or CM7_1).
Returns
System Macros
If 0: CY_SYS_CM7_STATUS_DISABLED
1: CY_SYS_CM7_STATUS_RESET
2: CY_SYS_CM7_STATUS_RETAINED
3: CY_SYS_CM7_STATUS_ENABLED

◆ Cy_SysEnableCM7()

void Cy_SysEnableCM7 ( uint8_t  core,
uint32_t  vectorTableOffset 
)

Enables the Cortex-M7 core.

The CPU is enabled once if it was in the disabled or retained mode.

Parameters
coreCore type (CM7_0 or CM7_1).
vectorTableOffsetThe offset of the vector table base address from memory address 0x00000000. The offset should be multiple to 1024 bytes.

◆ Cy_SysDisableCM7()

void Cy_SysDisableCM7 ( uint8_t  core)

Disables the Cortex-M7 core.

Parameters
coreCore type (CM7_0 or CM7_1).
Warning
Do not call the function while the Cortex-M7 is executing because such a call may corrupt/abort a pending bus-transaction by the CPU and cause unexpected behavior in the system including a deadlock. Call the function while the Cortex-M7 core is in the Sleep or Deep Sleep low-power mode. Use the SysPm (System Power Management) Power Management (syspm) API to put the CPU into the low-power modes. Use the Cy_SysPm_ReadStatus() to get a status of the CPU.

◆ Cy_SysRetainCM7()

void Cy_SysRetainCM7 ( uint8_t  core)

Retains the Cortex-M7 core.

Parameters
coreCore type (CM7_0 or CM7_1).
Warning
Do not call the function while the Cortex-M7 is executing because such a call may corrupt/abort a pending bus-transaction by the CPU and cause unexpected behavior in the system including a deadlock. Call the function while the Cortex-M7 core is in the Sleep or Deep Sleep low-power mode. Use the SysPm (System Power Management) Power Management (syspm) API to put the CPU into the low-power modes. Use the Cy_SysPm_ReadStatus() to get a status of the CPU.

◆ Cy_SysResetCM7()

void Cy_SysResetCM7 ( uint8_t  core)

Resets the Cortex-M7 core.

Parameters
coreCore type (CM7_0 or CM7_1).
Warning
Do not call the function while the Cortex-M7 is executing because such a call may corrupt/abort a pending bus-transaction by the CPU and cause unexpected behavior in the system including a deadlock. Call the function while the Cortex-M7 core is in the Sleep or Deep Sleep low-power mode. Use the SysPm (System Power Management) Power Management (syspm) API to put the CPU into the low-power modes. Use the Cy_SysPm_ReadStatus() to get a status of the CPU.