| 175 | } |
| 176 | |
| 177 | static rt_err_t client_getchar_rx_ind(rt_device_t dev, rt_size_t size) |
| 178 | { |
| 179 | uint8_t ch; |
| 180 | rt_size_t i; |
| 181 | |
| 182 | for (i = 0; i < size; i++) |
| 183 | { |
| 184 | /* read a char */ |
| 185 | if (rt_device_read(dev, 0, &ch, 1)) |
| 186 | { |
| 187 | rt_ringbuffer_put_force(client_rx_fifo, &ch, 1); |
| 188 | rt_sem_release(&client_rx_notice); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | return RT_EOK; |
| 193 | } |
| 194 | static void client_cli_parser(at_client_t client) |
| 195 | { |
| 196 | #define ESC_KEY 0x1B |
nothing calls this directly
no test coverage detected