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

Function rt_bypass_putchar

components/drivers/serial/bypass.c:122–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121
122void rt_bypass_putchar(struct rt_serial_device* serial, rt_uint8_t ch)
123{
124 rt_mutex_take(serial->bypass->mutex, RT_WAITING_FOREVER);
125 rt_ringbuffer_putchar(serial->bypass->pipe, ch);
126 rt_mutex_release(serial->bypass->mutex);
127}
128
129rt_size_t rt_bypass_getchar(struct rt_serial_device* serial, rt_uint8_t* ch)
130{

Callers 2

_lower_workFunction · 0.85
rt_bypass_work_straightFunction · 0.85

Calls 3

rt_mutex_takeFunction · 0.85
rt_ringbuffer_putcharFunction · 0.85
rt_mutex_releaseFunction · 0.85

Tested by

no test coverage detected