TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
utilities.h File Reference
#include <stdbool.h>
#include <stdio.h>
Include dependency graph for utilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TFM_CORE_ASSERT(cond)
 
#define TFM_GET_CONTAINER_PTR(ptr, type, member)   (type *)((unsigned long)(ptr) - offsetof(type, member))
 
#define ERROR_MSG(msg)
 

Functions

void tfm_core_panic (void)
 
bool tfm_is_one_bit_set (uint32_t n)
 

Macro Definition Documentation

#define ERROR_MSG (   msg)

Definition at line 36 of file utilities.h.

#define TFM_CORE_ASSERT (   cond)
Value:
do { \
if (!(cond)) { \
while (1) \
; \
} \
} while (0)

Definition at line 21 of file utilities.h.

#define TFM_GET_CONTAINER_PTR (   ptr,
  type,
  member 
)    (type *)((unsigned long)(ptr) - offsetof(type, member))

Definition at line 33 of file utilities.h.

Function Documentation

void tfm_core_panic ( void  )

Definition at line 11 of file utilities.c.

Here is the caller graph for this function:

bool tfm_is_one_bit_set ( uint32_t  n)

Definition at line 24 of file utilities.c.

Here is the caller graph for this function: