6#ifndef LOG_FILE_COMMON_H
7#define LOG_FILE_COMMON_H
14#define MAX_FILE_PATH_LEN 128
15#define MAX_SUFFIX_LEN 8
16#define RECORD_HEAD_MAGIC 0x4B3C
17#ifndef LOGFILE_SAVE_TASK_SIZE
18#define LOGFILE_SAVE_TASK_SIZE 0x800
20#define LOGFILE_SAVE_EVENT_MASK 0x7
21#define LOGFILE_TIMER_PERIOD 10000
22#define MAX_MUTIFILE_NAME_NUM 9999
23#define MAX_MUTIFILE_NUM 100
24#define FILE_HEAD_START_FLAG 0xaabbccdd
25#define CLOSE_SLEEP_PERIOD 10
26#define THREAD_PRIORITY_NUM 24
33#if CONFIG_DFX_SUPPORT_FILE_SYSTEM == DFX_NO
62#if CONFIG_DFX_SUPPORT_FILE_SYSTEM == DFX_NO
store_service_t
Definition log_file.h:22
@ STORE_MAX
Definition log_file.h:26
void logfile_init_file_head(store_file_info_t *file_info)
Definition log_file.c:42
store_file_manage_t * logfile_get_manage(void)
Definition log_file.c:26
bool logfile_check_record_head_valid(store_record_info_t *record_header)
Definition log_file.c:31
Definition osal_event.h:28
Definition osal_mutex.h:20
Definition osal_task.h:49
Definition osal_timer.h:18
Definition log_file_common.h:40
uint32_t cache_read_pos
Definition log_file_common.h:42
uint32_t cache_write_pos
Definition log_file_common.h:41
uint32_t threshold_size
Definition log_file_common.h:44
uint32_t cache_size
Definition log_file_common.h:43
Definition log_file_common.h:54
bool finish_flag
Definition log_file_common.h:68
int32_t idx_fd
Definition log_file_common.h:60
store_service_t type
Definition log_file_common.h:57
bool run_flag
Definition log_file_common.h:67
store_file_cfg_t file_cfg
Definition log_file_common.h:56
int32_t fd
Definition log_file_common.h:59
store_muti_file_idx_t muti_file_idx
Definition log_file_common.h:58
uint32_t index
Definition log_file_common.h:63
uint32_t flash_cur_pos
Definition log_file_common.h:64
store_file_head_t file_head
Definition log_file_common.h:55
uint32_t last_save_time
Definition log_file_common.h:61
store_cache_t * cache
Definition log_file_common.h:66
Definition log_file_common.h:71
osal_mutex file_write_mutex
Definition log_file_common.h:75
osal_timer timer_handle
Definition log_file_common.h:72
osal_event event
Definition log_file_common.h:74
osal_task * task_handle
Definition log_file_common.h:73
Definition log_file_common.h:48
uint32_t cur_file_idx
Definition log_file_common.h:50
uint32_t oldest_file_idx
Definition log_file_common.h:49
uint32_t file_count
Definition log_file_common.h:51
Definition log_file_common.h:28
uint16_t len
Definition log_file_common.h:30
uint16_t crc
Definition log_file_common.h:36
uint8_t type
Definition log_file_common.h:31
uint8_t rev
Definition log_file_common.h:32
uint16_t magic
Definition log_file_common.h:29
uint16_t index
Definition log_file_common.h:34
Definition hal_uart_v151_regs_def.h:38