Support for flow protected loops. More...
Macros | |
| #define | MCUX_CSSL_FP_LOOP_DECL(id) |
| Declaration of a flow protected loop. More... | |
| #define | MCUX_CSSL_FP_LOOP_ITERATION(...) |
| Perform a loop iteration. More... | |
| #define | MCUX_CSSL_FP_LOOP_ITERATIONS(id, count) |
| Expected number of loop iterations. More... | |
Support for flow protected loops.
| #define MCUX_CSSL_FP_LOOP_DECL | ( | id | ) |
Declaration of a flow protected loop.
To inform the flow protection mechanism about a loop that needs to be protected, a loop identifier needs to be declared. This identifier can then be used in the event and expectation macros. For example:
| id | Identifier for the loop that is flow protected. |
| #define MCUX_CSSL_FP_LOOP_ITERATION | ( | ... | ) |
Perform a loop iteration.
This loop iteration macro informs the flow mechanism that an iteration event is performed for the loop declared by MCUX_CSSL_FP_LOOP_DECL with the given id. For example:
| ... | The following parameters need to be passed (comma separated):
|
| #define MCUX_CSSL_FP_LOOP_ITERATIONS | ( | id, | |
| count | |||
| ) |
Expected number of loop iterations.
This expectation macro indicates to the flow protection mechanism that the loop declared by MCUX_CSSL_FP_LOOP_DECL with the given id has made count iterations. For example:
| id | Identifier of the flow protected loop. |
| count | Number of expected iterations. |