From 297da5ced136a6374d91a06962483a1bf33ccc2f Mon Sep 17 00:00:00 2001 From: 1624952103 Date: Mon, 11 May 2026 09:43:08 +0800 Subject: [PATCH] =?utf8?q?=E5=B0=86thread=5Finit.c=20at=20lwip=E7=AD=89?= =?utf8?q?=E7=BA=BF=E7=A8=8B=E5=88=9B=E5=BB=BA=E5=9C=A8EXTEND=5FMEM=20?= =?utf8?q?=E6=81=A2=E5=A4=8Dslip=20test=20init=20=20=E4=BF=AE=E5=A4=8D4G?= =?utf8?q?=E5=BC=80=E5=90=AF=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../brandy/brandy_standard/thread_init.c | 18 +++++++++--------- .../lwip/lwip_v2.1.3/src/core/init.c | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/code/sdk/application/brandy/brandy_standard/thread_init.c b/code/sdk/application/brandy/brandy_standard/thread_init.c index ae358e748..63edf6b70 100644 --- a/code/sdk/application/brandy/brandy_standard/thread_init.c +++ b/code/sdk/application/brandy/brandy_standard/thread_init.c @@ -118,7 +118,7 @@ #define APP_MAIN_STACK_SIZE 0xC00 #define SAVE_FILE_STACK_SIZE 0xC00 #define AUTO_OTA_STACK_SIZE 0xC00 -#define LWIP_MAIN_STACK_SIZE 0xC00 +#define LWIP_MAIN_STACK_SIZE 0xF00 #define TIME_MAX 64 #define USEC_TO_MILLI 1000 @@ -146,10 +146,10 @@ void save_file_main(void); static uint32_t g_app_delay_ms = TASK_COMMON_APP_DELAY_MS; app_task_definition_t g_app_tasks[] = { { { "app", 0, NULL, 0, NULL, APP_MAIN_STACK_SIZE, TASK_PRIORITY_APP, 0, 0 }, - (osThreadFunc_t)app_main, NULL, NULL, USE_DTCM_MEM }, + (osThreadFunc_t)app_main, NULL, NULL, USE_EXTEND_MEM }, #if SUPPORT_LWIP { { "lwip", 0, NULL, 0, NULL, LWIP_MAIN_STACK_SIZE, TASK_PRIORITY_BRANDY_APP, 0, 0 }, - (osThreadFunc_t)lwip_main, NULL, NULL, USE_DTCM_MEM }, + (osThreadFunc_t)lwip_main, NULL, NULL, USE_EXTEND_MEM }, #endif #if (USE_COMPRESS_LOG_INSTEAD_OF_SDT_LOG == NO) { { "log", 0, NULL, 0, NULL, (0xC00), TASK_PRIORITY_LOG, 0, 0 }, @@ -158,9 +158,9 @@ app_task_definition_t g_app_tasks[] = { { { "bt_sdk", 0, NULL, 0, NULL, BTH_SDK_STACK_SIZE, TASK_PRIORITY_SDK, 0, 0 }, (osThreadFunc_t)bt_acore_task_main, NULL, NULL, USE_DTCM_MEM }, #ifdef SUPPORT_AT_CMD - { { "at_cmd", 0, NULL, 0, NULL, 0xC00, TASK_PRIORITY_APP, 0, 0 }, + { { "at_cmd", 0, NULL, 0, NULL, 0x1C00, TASK_PRIORITY_APP, 0, 0 }, (osThreadFunc_t)at_cmd_task_process_handler, NULL, - (CreateQueueFunction_t)at_cmd_task_queue_init, USE_DTCM_MEM }, + (CreateQueueFunction_t)at_cmd_task_queue_init, USE_EXTEND_MEM }, #endif #if defined(SUPPORT_AT_GRAPHIC) { { "at_graphic", 0, NULL, 0, NULL, AT_GRAPHIC_STACK_SIZE, TASK_PRIORITY_APP, 0, 0 }, @@ -175,17 +175,17 @@ app_task_definition_t g_app_tasks[] = { #ifdef SUPPORT_AT_AUDIO { { "at_audio", 0, NULL, 0, NULL, AT_AUDIO_STACK_SIZE, TASK_PRIORITY_APP, 0, 0 }, (osThreadFunc_t)audio_at_task_process_handler, NULL, - (CreateQueueFunction_t)audio_at_task_queue_init, USE_DTCM_MEM }, + (CreateQueueFunction_t)audio_at_task_queue_init, USE_EXTEND_MEM }, #endif #ifdef SUPPORT_AT_BT_MANAGER { { "at_bt_manager", 0, NULL, 0, NULL, AT_BT_MANAGER_STACK_SIZE, TASK_PRIORITY_APP, 0, 0 }, (osThreadFunc_t)bt_manager_task_process_handler, NULL, - (CreateQueueFunction_t)bt_manager_at_task_queue_init, USE_DTCM_MEM }, + (CreateQueueFunction_t)bt_manager_at_task_queue_init, USE_EXTEND_MEM }, #endif #ifdef SUPPORT_AT_MEDIA { { "at_media", 0, NULL, 0, NULL, AT_MEDIA_STACK_SIZE, TASK_PRIORITY_APP, 0, 0 }, (osThreadFunc_t)media_at_task_process_handler, NULL, - (CreateQueueFunction_t)media_at_task_queue_init, USE_DTCM_MEM }, + (CreateQueueFunction_t)media_at_task_queue_init, USE_EXTEND_MEM }, #endif #ifdef HSO_SUPPORT { { "dfx_msg", 0, NULL, 0, NULL, DFX_MSG_STACK_SIZE, TASK_PRIORITY_DFX_MSG, 0, 0 }, @@ -204,7 +204,7 @@ app_task_definition_t g_app_tasks[] = { (CreateQueueFunction_t)power_display_task_init, USE_DTCM_MEM }, #endif { { "save_file", 0, NULL, 0, NULL, SAVE_FILE_STACK_SIZE, TASK_PRIORITY_SAVE_FILE, 0, 0 }, - (osThreadFunc_t)save_file_main, NULL, NULL, USE_DTCM_MEM }, + (osThreadFunc_t)save_file_main, NULL, NULL, USE_EXTEND_MEM }, #ifdef SUPPORT_AUTO_OTA { { "auto_ota", 0, NULL, 0, NULL, AUTO_OTA_STACK_SIZE, TASK_PRIORITY_AUTO_OTA, 0, 0 }, (osThreadFunc_t)auto_ota_task_main, NULL, NULL, USE_DTCM_MEM }, diff --git a/code/sdk/open_source/openharmony/third_party/lwip/lwip_v2.1.3/src/core/init.c b/code/sdk/open_source/openharmony/third_party/lwip/lwip_v2.1.3/src/core/init.c index ab25144b1..8c7f3a994 100644 --- a/code/sdk/open_source/openharmony/third_party/lwip/lwip_v2.1.3/src/core/init.c +++ b/code/sdk/open_source/openharmony/third_party/lwip/lwip_v2.1.3/src/core/init.c @@ -377,7 +377,7 @@ lwip_init(void) #endif /* LWIP_DNS */ #if LWIP_SLIP - // slip_test_init();暂时屏蔽 + slip_test_init(); #endif /* LWIP_SLIP */ #if PPP_SUPPORT ppp_init(); -- 2.17.1