using usb as console

This commit is contained in:
wmano
2025-10-13 22:21:43 +08:00
parent a70473078a
commit 067f24cff0
11 changed files with 431 additions and 390 deletions
+6
View File
@@ -3,6 +3,8 @@
#include <board.h>
#include <drv_gpio.h>
#include <stdio.h>
#include <string.h>
#include "shell.h"
#include "main.h"
@@ -21,6 +23,8 @@ void show_app_version (void)
int main(void)
{
//rt_uint32_t tick = 0;
#if defined(RT_USING_FINSH) && defined(FINSH_USING_MSH)
finsh_set_prompt("chrg ");
#endif
@@ -28,6 +32,8 @@ int main(void)
while (1) {
rt_thread_mdelay(1000);
chrg_wdt_feed();
//rt_kprintf("%d\r\n", ++tick);
}
}