diff --git a/arm_mps2_an386/liteos_m/board/target_config.h b/arm_mps2_an386/liteos_m/board/target_config.h index 0b984fe47048397f90d3c4997c8b657badd3acc7..8b32edca6c37d293fc18bb65a17d22ae5faa6f6a 100644 --- a/arm_mps2_an386/liteos_m/board/target_config.h +++ b/arm_mps2_an386/liteos_m/board/target_config.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. + * Copyright (c) 2020-2023 Huawei Device Co., Ltd. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -44,15 +44,11 @@ =============================================================================*/ #define OS_SYS_CLOCK SYSCLK_FREQ #define LOSCFG_BASE_CORE_TICK_PER_SECOND (100UL) -#define LOSCFG_BASE_CORE_TICK_HW_TIME 0 -#define LOSCFG_BASE_CORE_TICK_WTIMER 0 #define LOSCFG_BASE_CORE_TICK_RESPONSE_MAX 0xFFFFFFUL /*============================================================================= Hardware interrupt module configuration =============================================================================*/ -#define LOSCFG_PLATFORM_HWI 1 -#define LOSCFG_USE_SYSTEM_DEFINED_INTERRUPT 1 #define LOSCFG_PLATFORM_HWI_LIMIT 128 /*============================================================================= Task module configuration @@ -63,42 +59,31 @@ #define LOSCFG_BASE_CORE_TSK_MIN_STACK_SIZE (0x130U) #define LOSCFG_BASE_CORE_TIMESLICE 1 #define LOSCFG_BASE_CORE_TIMESLICE_TIMEOUT 20000 -#define LOSCFG_BASE_CORE_TSK_MONITOR 1 -#define LOSCFG_BASE_CORE_EXC_TSK_SWITCH 1 /*============================================================================= Semaphore module configuration =============================================================================*/ -#define LOSCFG_BASE_IPC_SEM 1 #define LOSCFG_BASE_IPC_SEM_LIMIT 48 /*============================================================================= Mutex module configuration =============================================================================*/ -#define LOSCFG_BASE_IPC_MUX 1 #define LOSCFG_BASE_IPC_MUX_LIMIT 24 /*============================================================================= Queue module configuration =============================================================================*/ -#define LOSCFG_BASE_IPC_QUEUE 1 #define LOSCFG_BASE_IPC_QUEUE_LIMIT 24 /*============================================================================= Software timer module configuration =============================================================================*/ -#define LOSCFG_BASE_CORE_SWTMR 1 -#define LOSCFG_BASE_CORE_SWTMR_ALIGN 1 #define LOSCFG_BASE_CORE_SWTMR_LIMIT 48 /*============================================================================= Memory module configuration =============================================================================*/ extern unsigned int __heap_start; extern unsigned int __heap_size; -#define LOSCFG_SYS_EXTERNAL_HEAP 1 #define LOSCFG_SYS_HEAP_ADDR (void *)&__heap_start #define LOSCFG_SYS_HEAP_SIZE (unsigned int)&__heap_size -#define LOSCFG_MEM_MUL_POOL 1 #define OS_SYS_MEM_NUM 20 -#define LOSCFG_MEM_FREE_BY_TASKID 1 -#define LOSCFG_MEMORY_BESTFIT 1 /* ============================================================================= printf module configuration @@ -110,7 +95,45 @@ extern unsigned int __heap_size; /*============================================================================= shell module configuration =============================================================================*/ -#define LOSCFG_USE_SHELL 1 #define LOSCFG_SHELL_PRIO 3 +#define LOSCFG_SHELL_STACK_SIZE 4096 + +/*============================================================================= + backtrace module configuration +=============================================================================*/ +#if (LOSCFG_KERNEL_BACKTRACE == 1) +#define LOSCFG_BACKTRACE_DEPTH 15 +#endif +#if (LOSCFG_KERNEL_TRACE == 1) +#define LOSCFG_TRACE_FRAME_MAX_PARAMS 3 +#endif +#if (LOSCFG_RECORDER_MODE_OFFLINE == 1) +#define LOSCFG_TRACE_BUFFER_SIZE 2048 +#endif + +/*============================================================================= + security module configuration +=============================================================================*/ +#if (LOSCFG_SECURE_TRUSTZONE == 1) +#define LOSCFG_SECURE_HEAP_SIZE 2048 +#endif + +/*============================================================================= + file system module configuration +=============================================================================*/ +#if (LOSCFG_FS_VFS == 1) +#define LOSCFG_FS_LOCK_TIMEOUT -1 +#endif +#if (LOSCFG_FS_LITTLEFS == 1) +#define LOSCFG_LFS_MAX_MOUNT_SIZE 3 +#define LOSCFG_LFS_MAX_OPEN_FILES 100 +#endif + +/*============================================================================= + lms module configuration +=============================================================================*/ +#if (LOSCFG_KERNEL_LMS == 1) +#define LOSCFG_LMS_MAX_RECORD_POOL_NUM 50 +#endif #endif /* _TARGET_CONFIG_H */ diff --git a/riscv32_virt/liteos_m/board/target_config.h b/riscv32_virt/liteos_m/board/target_config.h index c1b7785eb7030185319d7c7e4d2cf4b9e5cc8ee3..716823735bcdf3b2b4697073931492bdbd3d5a6e 100644 --- a/riscv32_virt/liteos_m/board/target_config.h +++ b/riscv32_virt/liteos_m/board/target_config.h @@ -100,6 +100,20 @@ extern UINTPTR __heap_size; #define LOSCFG_USE_SHELL 1 #define LOSCFG_SHELL_PRIO 3 +/*============================================================================= + backtrace module configuration +=============================================================================*/ +#if (LOSCFG_KERNEL_BACKTRACE == 1) +#define LOSCFG_BACKTRACE_DEPTH 15 +#endif + +/*============================================================================= + file system module configuration +=============================================================================*/ +#if (LOSCFG_FS_VFS == 1) +#define LOSCFG_FS_LOCK_TIMEOUT -1 +#endif + extern UINT32 QemuCLZ(UINT32); #undef CLZ #define CLZ(n) QemuCLZ(n)