From b9f5afd78e926104064f90551d75b48f42094c4b Mon Sep 17 00:00:00 2001 From: gaoyang3513 Date: Tue, 6 Aug 2024 09:57:57 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]=20=E4=BC=98=E5=8C=96=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. start_task中新增delay,延后打印'#'; --- NSPE/WIFI_IOT/app/cmd_shell.c | 3 +++ NSPE/WIFI_IOT/app/main.c | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/NSPE/WIFI_IOT/app/cmd_shell.c b/NSPE/WIFI_IOT/app/cmd_shell.c index f33d5f1..c4b359e 100644 --- a/NSPE/WIFI_IOT/app/cmd_shell.c +++ b/NSPE/WIFI_IOT/app/cmd_shell.c @@ -59,6 +59,7 @@ OF SUCH DAMAGE. #include "uart.h" #include "console.h" #include "flash_api.h" +#include #ifdef CONFIG_TELNET_SERVER #include "telnet_main.h" @@ -1093,6 +1094,8 @@ static void cmd_boot(int argc, char **argv) uint32_t arm_vector[2] = {0}; uint32_t boot_idx = 0, image_offset = 0, version; + bRadioGoStandby(); + if (argc > 2) { DEBUGPRINT("jump_bml: command format error!\r\n"); goto Usage; diff --git a/NSPE/WIFI_IOT/app/main.c b/NSPE/WIFI_IOT/app/main.c index 52d3e61..052eddb 100644 --- a/NSPE/WIFI_IOT/app/main.c +++ b/NSPE/WIFI_IOT/app/main.c @@ -33,6 +33,7 @@ OF SUCH DAMAGE. */ /*============================ INCLUDES ======================================*/ +#include "radio_hal.h" #include "wrapper_freertos.h" #include "wrapper_os.h" #include "debug_print.h" @@ -145,12 +146,14 @@ void start_task(void *p_arg) const char *filename; #endif // CONFIG_GY3513 - wifi_management_init(); +// wifi_management_init(); #ifdef CONFIG_FATFS_SUPPORT rcu_periph_clock_enable(RCU_CRC); fatfs_mk_mount(); #endif + delay1ms(100); + #ifdef CONFIG_CONSOLE_ENABLE console_init(); #else @@ -197,11 +200,11 @@ int main(void) } #endif // CONFIG_TASK_LED - if (NULL == sys_task_create(NULL, (const uint8_t *)"start_task", NULL, START_TASK_STK_SIZE, 0, START_TASK_PRIO, start_task, NULL)) { + if (NULL == sys_task_create(NULL, (const uint8_t *)"sub1g_task", NULL, START_TASK_STK_SIZE, 0, START_TASK_PRIO, sub1g_task, NULL)) { DEBUGPRINT("ERROR: create start task failed\r\n"); } - if (NULL == sys_task_create(NULL, (const uint8_t *)"sub1g_task", NULL, START_TASK_STK_SIZE, 0, START_TASK_PRIO, sub1g_task, NULL)) { + if (NULL == sys_task_create(NULL, (const uint8_t *)"start_task", NULL, START_TASK_STK_SIZE, 0, START_TASK_PRIO, start_task, NULL)) { DEBUGPRINT("ERROR: create start task failed\r\n"); }