| 31 | |
| 32 | |
| 33 | rt_inline enum rt_ringbuffer_state rt_ringbuffer_status(struct rt_ringbuffer *rb) |
| 34 | { |
| 35 | if (rb->read_index == rb->write_index) |
| 36 | { |
| 37 | if (rb->read_mirror == rb->write_mirror) |
| 38 | return RT_RINGBUFFER_EMPTY; |
| 39 | else |
| 40 | return RT_RINGBUFFER_FULL; |
| 41 | } |
| 42 | return RT_RINGBUFFER_HALFFULL; |
| 43 | } |
| 44 | |
| 45 | static void Ft_Os_Uart_Msg_Callback(void *Args, u32 Event, u32 EventData); |
| 46 |