mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-27 01:10:20 +08:00
[serial] 解决serial_close未清除回调接口的问题
This commit is contained in:
@@ -28,7 +28,7 @@ int rt_hw_usart_init(void);
|
||||
|
||||
#else
|
||||
#define UART_SET_TDR(__HANDLE__, __DATA__) ((__HANDLE__)->Instance->DR = (__DATA__))
|
||||
#define UART_GET_RDR(__HANDLE__) (return (__HANDLE__)->Instance->DR & 0xFF))
|
||||
#define UART_GET_RDR(__HANDLE__) ((__HANDLE__)->Instance->DR & 0xFF)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user