This section contains APIs for logging from remote cores to a central host core which prints all the logs to a common console.
◆ APP_LOG_MAX_CPUS
#define APP_LOG_MAX_CPUS (16u) |
Max CPUs that are participating in the logging.
◆ APP_LOG_MAX_CPU_NAME
#define APP_LOG_MAX_CPU_NAME (16u) |
CPU name to use as prefix while logging.
◆ APP_LOG_PER_CPU_MEM_SIZE
#define APP_LOG_PER_CPU_MEM_SIZE (16*1024u - 32u) |
Size of memory used for logging by one CPU.
◆ APP_LOG_AREA_VALID_FLAG
#define APP_LOG_AREA_VALID_FLAG (0x1357231u) |
Flag to check if log area is valid or not.
◆ app_log_device_send_string_f
typedef void(* app_log_device_send_string_f) (char *string, uint32_t max_size) |
Callback to write string to console device.
◆ appLogInitPrmSetDefault()
Initialize app_log_init_prm_t with default parameters always call this function before calling appLogInit.
It is recommended to call this API before calling appLogInit(). User should override init parameters after calling this API.
- Parameters
-
◆ appLogRdInit()
Init Log reader and log writer,.
- Parameters
-
prms | [in] Init parameters. |
- Returns
- 0 on success, else failure.
◆ appLogWrInit()
Init Log reader and log writer,.
- Parameters
-
prms | [in] Init parameters. |
- Returns
- 0 on success, else failure.
◆ appLogRdDeInit()
int32_t appLogRdDeInit |
( |
| ) |
|
De-init log reader and log writer.
- Returns
- 0 on success, else failure.
◆ appLogWrDeInit()
int32_t appLogWrDeInit |
( |
| ) |
|
De-init log reader and log writer.
- Returns
- 0 on success, else failure.
◆ appLogPrintf()
void appLogPrintf |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
Write a string to shared memory.
- Parameters
-
format | [in] string to log with variable number of arguments |
- Returns
- 0 on success, else failure.
◆ appLogCioInit()
int32_t appLogCioInit |
( |
void |
| ) |
|
Redirect printf to appLogPrintf.
- Returns
- 0 on success, else failure.
◆ appLogCioDeInit()
void appLogCioDeInit |
( |
void |
| ) |
|
De-init Redirect printf to appLogPrintf.
◆ appLogCpuSyncInit()
void appLogCpuSyncInit |
( |
uint32_t |
master_cpu_id, |
|
|
uint32_t |
self_cpu_id, |
|
|
uint32_t |
sync_cpu_id_list[], |
|
|
uint32_t |
num_cpus |
|
) |
| |
Sync provided list of CPUs.