Posts in channel0 should be sync. */
| 404 | |
| 405 | /* Posts in channel0 should be sync. */ |
| 406 | static rt_err_t _chn0_post(const void *data, |
| 407 | rt_size_t size, |
| 408 | int timeout) |
| 409 | { |
| 410 | rt_err_t err; |
| 411 | |
| 412 | rt_completion_init(&_chn0_post_cmp); |
| 413 | err = rt_vbus_post(0, 0, data, size, timeout); |
| 414 | if (err != RT_EOK) |
| 415 | return err; |
| 416 | return rt_completion_wait(&_chn0_post_cmp, timeout); |
| 417 | } |
| 418 | |
| 419 | #define _BUS_IN_THRD_STACK_SZ 1024 |
| 420 | #define _BUS_IN_THRD_PRIO (_BUS_OUT_THRD_PRIO+1) |
no test coverage detected