rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

serial组件中的超时事件RT_SERIAL_EVENT_RX_TIMEOUT 仅做了定义 但是为什么不给实现呢

Open meng-plus opened this issue 1 year ago • 1 comments

https://github.com/RT-Thread/rt-thread/blob/ecd29fda6005ef19c625f194f9311259ba907a78/components/drivers/include/drivers/serial.h#L67C1-L67C1

或者有什么规划,说一下 后续完善下

meng-plus avatar Oct 17 '23 05:10 meng-plus

我对SERIAL_V2框架的问题:

假如驱动实现 INT TX 的RT_SERIAL_TX_BLOCKING_NO_BUFFER, 也就是TX用_serial_fifo_tx_blocking_nbuf(), 那么SERIAL_V2框架里都没有初始化rb, 这里又调用rt_ringbuffer_data_len(), 明显不对.

(意思就是 驱动 实现TX 中断模式 下用RT_SERIAL_TX_BLOCKING_NO_BUFFER模式, SERIAL_V2框架会出现错误)

cc-caixf avatar Oct 18 '23 05:10 cc-caixf