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

Function console_getchar

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

Source from the content-addressed store, hash-verified

30#endif
31
32static char console_getchar(void)
33{
34 char ch;
35
36 rt_sem_take(&console_rx_notice, RT_WAITING_FOREVER);
37 rt_ringbuffer_getchar(console_rx_fifo, (rt_uint8_t *)&ch);
38
39 return ch;
40}
41
42static rt_err_t console_getchar_rx_ind(rt_device_t dev, rt_size_t size)
43{

Callers 2

client_cli_parserFunction · 0.85

Calls 2

rt_sem_takeFunction · 0.85
rt_ringbuffer_getcharFunction · 0.85

Tested by

no test coverage detected