41#ifndef MCUXCLOSCCA_MEMORY_H_
42#define MCUXCLOSCCA_MEMORY_H_
44#include <mcuxClConfig.h>
52#define MCUXCLOSCCA_SIZE_ALIGN_OFFSET (sizeof(uint32_t) - 1U)
54#define mcuxClOscca_alignAddress(address) \
55 MCUX_CSSL_ANALYSIS_START_SUPPRESS_TYPECAST_BETWEEN_INTEGER_AND_POINTER("The resulting address is carefully calculated, the cast to a pointer-type is safe.") \
56 ((uint8_t *)( (((uint32_t)(address)) + (sizeof(uint32_t) - 1U)) \
57 & ((uint32_t)(~(sizeof(uint32_t) - 1U))) )) \
58 MCUX_CSSL_ANALYSIS_STOP_SUPPRESS_TYPECAST_BETWEEN_INTEGER_AND_POINTER()
60#define mcuxClOscca_alignSize(size) \
61 ((uint32_t)(((uint32_t)(size)) + (sizeof(uint32_t) - 1U)) \
62 & ((uint32_t)(~(sizeof(uint32_t) - 1U))) )
64#define mcuxClOscca_alignAddressWithOffset(address, offset) \
65 MCUX_CSSL_ANALYSIS_START_SUPPRESS_TYPECAST_BETWEEN_INTEGER_AND_POINTER("The resulting address is carefully calculated, the cast to a pointer-type is safe.") \
66 ((uint8_t *)( (((uint32_t)(address) + (uint32_t)(offset)) + (sizeof(uint32_t) - 1U)) \
67 & ((uint32_t)(~(sizeof(uint32_t) - 1U))) )) \
68 MCUX_CSSL_ANALYSIS_STOP_SUPPRESS_TYPECAST_BETWEEN_INTEGER_AND_POINTER()
70#define mcuxClOscca_alignAddressToBoundary(address, boundary) \
71 ((uint8_t *)( (((uint32_t)(address)) + (boundary - 1U)) \
72 & ((uint32_t)(~(boundary - 1U))) ))
Definition of function identifiers for the flow protection mechanism.
Provides the API for the CSSL flow protection mechanism.
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition mcuxCsslFlowProtection.h:145
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition mcuxCsslFlowProtection.h:101