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

Function send_comm

examples/libc/termios_test.c:260–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260int send_comm(int fd, const unsigned char *buffer, rt_size_t size)
261{
262 RT_ASSERT(RT_NULL != buffer);
263
264 if(fd == -1)
265 {
266 return -1;
267 }
268
269 //serial framework does not support poll out now
270 write(fd, buffer, size);
271
272 return 0;
273}
274
275int flush_comm(int fd)
276{

Callers 1

termios_test_entryFunction · 0.85

Calls 1

writeFunction · 0.50

Tested by

no test coverage detected