Utility macros and functions for saving and restoring SPU peripheral. More...
Macros | |
#define | _NRFX_SPU_VDMA_LEN(_inst, _with_periph) |
Macro for calculating length of a save & restore transfer for the given SPU instance. | |
#define | _NRFX_SPU_VDMA_JOB(_inst, _with_periph) |
Macro for generating a set of jobs for a SPU peripheral. | |
#define | NRFX_SR_VDMA_SPU_JOB() NRFX_FOREACH_PRESENT(SPU, NRFX_INSTANCE_CONCAT, (), (), _NRFX_SPU_VDMA_JOB, 1) |
Macro for generating a set of VDMA jobs for transfer engaging all SPU instances. | |
#define | NRFX_SR_VDMA_SPU_LEN() (NRFX_FOREACH_PRESENT(SPU, NRFX_INSTANCE_CONCAT, (+), (0), _NRFX_SPU_VDMA_LEN, 1)) |
Macro for calculating length of a save & restore transfer for all SPU instances. | |
Utility macros and functions for saving and restoring SPU peripheral.
#define _NRFX_SPU_VDMA_JOB | ( | _inst, | |
_with_periph | |||
) |
Macro for generating a set of jobs for a SPU peripheral.
It skips an instance if there is a define forcing skipping set to 1 (e.g. SPU010_SR_VDMA_SKIP to skip VDMA jobs for SPU010 instance).
Macro attempts to generate jobs for features which are supported by the given instance.
[in] | _inst | Instance, e.g. SPU010. |
[in] | _with_periph | Set to 1 if PERIPH section shall also be included. |
#define _NRFX_SPU_VDMA_LEN | ( | _inst, | |
_with_periph | |||
) |
Macro for calculating length of a save & restore transfer for the given SPU instance.
Macro generates a sum of bytes transfered by jobs for a SPU instance. It skips an instance if there is a define forcing skipping set to 1 (e.g. SPU010_SR_VDMA_SKIP to skip VDMA jobs for SPU010 instance).
Macro attempts to sum transfer lengths for jobs for features which are supported by the given instance.
[in] | _inst | Instance, e.g. SPU010. |
[in] | _with_periph | Set to 1 if PERIPH section should be included. |
#define NRFX_SR_VDMA_SPU_JOB | ( | ) | NRFX_FOREACH_PRESENT(SPU, NRFX_INSTANCE_CONCAT, (), (), _NRFX_SPU_VDMA_JOB, 1) |
Macro for generating a set of VDMA jobs for transfer engaging all SPU instances.
Instances may be ommited by defining <instance>_SR_VDMA_SKIP to 1.
#define NRFX_SR_VDMA_SPU_LEN | ( | ) | (NRFX_FOREACH_PRESENT(SPU, NRFX_INSTANCE_CONCAT, (+), (0), _NRFX_SPU_VDMA_LEN, 1)) |
Macro for calculating length of a save & restore transfer for all SPU instances.
Instances may be ommited by defining <instance>_SR_VDMA_SKIP to 1.