TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
spm_log.c File Reference
#include "tfm_spm_log.h"
Include dependency graph for spm_log.c:

Go to the source code of this file.

Macros

#define MAX_DIGIT_BITS   12 /* 8 char for number, 2 for '0x' and 2 for '\r\n' */
 

Functions

int32_t spm_log_msgval (const char *msg, size_t len, uint32_t value)
 SPM output API to convert digit number into HEX string and call the HAL API tfm_hal_output_spm_log. More...
 

Macro Definition Documentation

#define MAX_DIGIT_BITS   12 /* 8 char for number, 2 for '0x' and 2 for '\r\n' */

Definition at line 10 of file spm_log.c.

Function Documentation

int32_t spm_log_msgval ( const char *  msg,
size_t  len,
uint32_t  value 
)

SPM output API to convert digit number into HEX string and call the HAL API tfm_hal_output_spm_log.

Parameters
[in]msgA string message
[in]lenThe length of the message
[in]valueA value need to be output
Return values
>=0Number of chars output.
<0TFM HAL error code.

Definition at line 36 of file spm_log.c.