MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / client_getchar_rx_ind

Function client_getchar_rx_ind

components/net/at/src/at_cli.c:177–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177static 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}
194static void client_cli_parser(at_client_t client)
195{
196#define ESC_KEY 0x1B

Callers

nothing calls this directly

Calls 3

rt_device_readFunction · 0.85
rt_ringbuffer_put_forceFunction · 0.85
rt_sem_releaseFunction · 0.85

Tested by

no test coverage detected