fix console_device

This commit is contained in:
Lyon 2021-12-08 15:28:22 +08:00 committed by GitHub
parent 0e6fd72c09
commit 132e970dc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@
#include <rtthread.h>
#include <pikaScript.h>
#define SAMPLE_UART_NAME "uart1" /* 串口设备名称 */
#define SAMPLE_UART_NAME RT_CONSOLE_DEVICE_NAME /* 串口设备名称 */
static rt_device_t serial; /* 串口设备句柄 */
static struct rt_semaphore rx_sem; /* 用于接收消息的信号量 */