diff options
| author | bernard <[email protected]> | 2013-08-19 13:00:48 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2013-08-19 13:00:48 +0800 |
| commit | 6f75988cee4c0e7bfd77211c56c40681cbc4710e (patch) | |
| tree | 7857c27a01fb83333e79ae027fe4044affc17fd0 /components/drivers/include | |
| parent | d8695085dcf24bfd56ee5045825cd36755e5979c (diff) | |
| parent | 90c9c8a27a4e39a47f6b6ba1d9b40b9bd6cf04d2 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/rtdevice.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index cf74ce2529..f8a944f5a7 100644 --- a/components/drivers/include/rtdevice.h +++ b/components/drivers/include/rtdevice.h @@ -172,8 +172,15 @@ rt_inline rt_uint16_t rt_ringbuffer_get_size(struct rt_ringbuffer *rb) /** * Pipe Device */ +rt_err_t rt_pipe_init(struct rt_pipe_device *pipe, + const char *name, + rt_uint8_t *buf, + rt_size_t size); +rt_err_t rt_pipe_detach(struct rt_pipe_device *pipe); +#ifdef RT_USING_HEAP rt_err_t rt_pipe_create(const char *name, rt_size_t size); void rt_pipe_destroy(struct rt_pipe_device *pipe); +#endif /** * DataQueue for DeviceDriver |
