Example for the Assert functionality of the Flow Protection component.
#define MCUX_CSSL_FP_ASSERT_CALLBACK() assertCallback()
#include <mcuxCsslExamples.h>
static volatile uint32_t testVariable = 0u;
void assertCallback(void);
void assertCallback(void)
{
testVariable = 0xFFU;
}
{
}
{
}
{
);
);
(void) functionOnly1Assert();
);
);
);
}
MCUX_CSSL_EX_FUNCTION(mcuxCsslFlowProtection_Assert_example)
{
(void) functionAssert();
return MCUX_CSSL_EX_OK;
}
Provides the API for the CSSL flow protection mechanism.
Definition of function identifiers for the flow protection mechanism.
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition mcuxCsslFlowProtection.h:166
#define MCUX_CSSL_FP_FUNCTION_ENTRY(...)
Flow protection handler for the function entry point.
Definition mcuxCsslFlowProtection.h:285
#define MCUX_CSSL_FP_FUNCTION_EXIT_VOID(...)
Flow protection handler for the exit point of functions with the return type void.
Definition mcuxCsslFlowProtection.h:407
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition mcuxCsslFlowProtection.h:138
#define MCUX_CSSL_FP_FUNCTION_DEF(...)
Definition of a flow protected function.
Definition mcuxCsslFlowProtection.h:200
#define MCUX_CSSL_FP_FUNCTION_EXIT_WITH_CHECK(...)
Flow protection handler for the function exit point which includes an actual check of the code flow.
Definition mcuxCsslFlowProtection.h:367
#define MCUX_CSSL_FP_FUNCTION_CALL_VOID(...)
Call a flow protected void function.
Definition mcuxCsslFlowProtection.h:509
#define MCUX_CSSL_FP_FUNCTION_ENTERED(id)
Expectation implementation of an entered (but not exited) function.
Definition mcuxCsslFlowProtection.h:812
#define MCUX_CSSL_FP_FUNCTION_CALLED(...)
Expectation of a called function.
Definition mcuxCsslFlowProtection.h:777
#define MCUX_CSSL_FP_ASSERT(...)
Assert an expected state of the code flow.
Definition mcuxCsslFlowProtection.h:1473