| 258 | } |
| 259 | |
| 260 | int 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 | |
| 275 | int flush_comm(int fd) |
| 276 | { |
no test coverage detected