This section describes functions and macros of the driver's API.
#define MCM_SetMasterAttr |
( |
|
mask, |
|
|
|
attr, |
|
|
|
lock |
|
) |
| |
#define MCM_LoadPID |
( |
|
pid | ) |
|
This macro loads process ID register.
- Parameters
-
pid | 00h - Reserved for privileged secure tasks, 01h - 7Fh Allocated for user secure tasks, 80h - FFh Allocated for user nonsecure tasks. |
- Note
- Implemented as an inline macro.
- See also
- MCM_SetMasterAttr
#define MCM_SfcCtrl |
( |
|
ctrl | ) |
|
This macro controls stalling flash controller when flash is busy. Stalling flash controller must be set by this macro only just before the flash operation is executed and must be cleared when the operation completes.
- Parameters
-
ctrl | FALSE Disables stalling flash controller when flash is busy (default), TRUE Enables stalling flash controller when flash is busy. |
- Note
- When software needs to access the flash memory while a flash memory resource is being manipulated by a flash command, software can enable a stall mechanism to avoid a read collision. The stall mechanism allows software to execute code from the same block on which flash operations are being performed. However, software must ensure the sector the flash operations are being performed on is not the same sector from which the code is executing. Implemented as an inline macro.
#define MCM_FcsCtrl |
( |
|
ctrl | ) |
|
This macro controls flash controller speculation.
- Parameters
-
ctrl | FALSE Disables flash controller speculation, TRUE Enables flash controller speculation (default). |
- Note
- Implemented as an inline macro.
#define MCM_FdsCtrl |
( |
|
ctrl | ) |
|
This macro controls flash data speculation.
- Parameters
-
ctrl | FALSE Disables flash data speculation (default), TRUE Enables flash data speculation. |
- Note
- Implemented as an inline macro.
#define MCM_FccCtrl |
( |
|
ctrl | ) |
|
This macro controls flash controller cache.
- Parameters
-
ctrl | FALSE Disables flash controller cache, TRUE Enables flash controller cache (default). |
- Note
- Implemented as an inline macro.
#define MCM_FcicCtrl |
( |
|
ctrl | ) |
|
This macro controls flash controller instruction caching.
- Parameters
-
ctrl | FALSE Disables flash controller instruction caching, TRUE Enables flash controller instruction caching (default). |
- Note
- Implemented as an inline macro.
#define MCM_FcdaCtrl |
( |
|
ctrl | ) |
|
This macro controls flash controller data caching.
- Parameters
-
ctrl | FALSE Disables flash controller data caching, TRUE Enables flash controller data caching (default). |
- Note
- Implemented as an inline macro.
#define MCM_MasterArbCtrl |
( |
|
ctrl | ) |
|
This macro controls arbitration for crossbar masters.
- Parameters
-
ctrl | FALSE Sets fixed-priority arbitration (default), TRUE Sets round-robin arbitration. |
- Note
- Implemented as an inline macro.
#define MCM_InitCPO |
( |
|
wakeup | ) |
|
This macro initializes compute operation mode (CPO). Macro waits until compute operation acknowledge (CPOACK) bit is asserted notifying successful transition to CPO mode. Compute operation wakeup on interrupt or exception vector fetch is set optionally.
- Parameters
-
wakeup | TRUE Sets compute operation as well as wakeup by any interrupt or exception vector fetch, FALSE Sets compute operation (default). |
- Note
- Implemented as an inline macro.
- See also
- MCM_QuitCPO
This macro quits pending compute operation mode (CPO). Macro waits until compute operation acknowledge (CPOACK) bit is de-asserted notifying successful transition to RUN or VLPR mode.
- Note
- Implemented as an inline macro.
- See also
- MCM_InitCPO