summaryrefslogtreecommitdiff
path: root/components/drivers/include/rtdevice.h
diff options
context:
space:
mode:
authorbernard <[email protected]>2013-08-19 13:00:48 +0800
committerbernard <[email protected]>2013-08-19 13:00:48 +0800
commit6f75988cee4c0e7bfd77211c56c40681cbc4710e (patch)
tree7857c27a01fb83333e79ae027fe4044affc17fd0 /components/drivers/include/rtdevice.h
parentd8695085dcf24bfd56ee5045825cd36755e5979c (diff)
parent90c9c8a27a4e39a47f6b6ba1d9b40b9bd6cf04d2 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/drivers/include/rtdevice.h')
-rw-r--r--components/drivers/include/rtdevice.h7
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