dev->serial

This commit is contained in:
dgjames 2024-12-21 19:37:41 +08:00
parent 509665eb13
commit d9877e5087

View File

@ -418,12 +418,12 @@ void cdc_entry(void *parameter)
static void serial_thread_entry(void *parameter)
{
rt_device_t dev = RT_NULL;
serial = RT_NULL;
char buf[] = "hello rt-thread!\r\n";
dev = rt_device_find("uart3");
serial = rt_device_find("uart3");
if (dev)
rt_device_open(dev, RT_DEVICE_FLAG_RDWR);
rt_device_open(serial, RT_DEVICE_FLAG_RDWR);
else
return;