debug tty

This commit is contained in:
wmano
2025-09-14 23:17:13 +08:00
parent 349741d9e1
commit ea8dcada90
22 changed files with 982 additions and 1156 deletions
+2 -1
View File
@@ -11,6 +11,7 @@
struct chrg_north_t chrgnorth = {
.name = THR_NAME_NORTH,
.devname = DEV_NAME_NORTH,
.tid = RT_NULL,
.tty = RT_NULL,
.rx_len = 0,
@@ -94,7 +95,7 @@ static int chrg_north_init (void)
rt_err_t ret;
struct chrg_north_t *pNOR = &chrgnorth;
pNOR->tty = chrg_tty_create("uart3", 2000000, 0, -1, 1);
pNOR->tty = chrg_tty_create(pNOR->devname, 2000000, 0, -1, 1);
if (RT_NULL == pNOR->tty) {
LOG_E("tty can't create.");
return -1;