84 #define APP_LOG_MAX_CPUS (16u) 87 #define APP_LOG_MAX_CPU_NAME (16u) 90 #define APP_LOG_PER_CPU_MEM_SIZE (16*1024u - 32u) 93 #define APP_LOG_AREA_VALID_FLAG (0x1357231u) 206 uint32_t sync_cpu_id_list[], uint32_t num_cpus);
uint32_t self_cpu_index
Definition: app_log.h:136
int32_t appLogCioInit(void)
Redirect printf to appLogPrintf.
int32_t appLogRdInit(app_log_init_prm_t *prms)
Init Log reader and log writer,.
uint32_t log_rd_task_pri
Definition: app_log.h:138
volatile uint32_t log_area_is_valid
Definition: app_log.h:108
int32_t appLogWrInit(app_log_init_prm_t *prms)
Init Log reader and log writer,.
volatile uint32_t log_wr_idx
Definition: app_log.h:106
#define APP_LOG_MAX_CPU_NAME
CPU name to use as prefix while logging.
Definition: app_log.h:87
volatile uint32_t log_rd_idx
Definition: app_log.h:104
volatile uint32_t log_cpu_sync_state
Definition: app_log.h:113
app_log_shared_mem_t * shared_mem
Definition: app_log.h:135
app_log_device_send_string_f device_write
Definition: app_log.h:142
int32_t appLogWrDeInit()
De-init log reader and log writer.
#define APP_LOG_MAX_CPUS
Max CPUs that are participating in the logging.
Definition: app_log.h:84
Init parameters to use for appLogInit()
Definition: app_log.h:134
void appLogCioDeInit(void)
De-init Redirect printf to appLogPrintf.
uint32_t log_rd_max_cpus
Definition: app_log.h:140
void(* app_log_device_send_string_f)(char *string, uint32_t max_size)
Callback to write string to console device.
Definition: app_log.h:96
void appLogInitPrmSetDefault(app_log_init_prm_t *prms)
Initialize app_log_init_prm_t with default parameters always call this function before calling appLog...
uint32_t log_rd_poll_interval_in_msecs
Definition: app_log.h:139
#define APP_LOG_PER_CPU_MEM_SIZE
Size of memory used for logging by one CPU.
Definition: app_log.h:90
Shared memory structure used for logging by a specific CPU.
Definition: app_log.h:102
Definition: app_log.h:127
int32_t appLogRdDeInit()
De-init log reader and log writer.
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.
void appLogPrintf(const char *format,...)
Write a string to shared memory.