[Mod] 优化展示效果

1. start_task中新增delay,延后打印'#';
This commit is contained in:
gaoyang3513
2024-08-06 09:57:57 +08:00
parent e7c70664d6
commit b9f5afd78e
2 changed files with 9 additions and 3 deletions

View File

@ -59,6 +59,7 @@ OF SUCH DAMAGE.
#include "uart.h"
#include "console.h"
#include "flash_api.h"
#include <radio_phy.h>
#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;

View File

@ -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");
}