mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
fix console_device
This commit is contained in:
parent
0e6fd72c09
commit
132e970dc8
@ -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; /* 用于接收消息的信号量 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user