diff options
| author | Grissiom <[email protected]> | 2013-08-20 10:16:55 +0800 |
|---|---|---|
| committer | Grissiom <[email protected]> | 2013-08-20 10:16:55 +0800 |
| commit | 7e68096a88aaa9279507df54da191893be99f7df (patch) | |
| tree | c4ee4a8137ab43d630c3c28f2965cfdaafad4c2e /components/drivers/src | |
| parent | 0340300f89a924b30fd8042b76686a236720d3d7 (diff) | |
dev/pipe: make pipe a type of device
Pipe have many differences with char device. The main difference is
altough pipe have both read and write, it is unidirectional in nature.
Diffstat (limited to 'components/drivers/src')
| -rw-r--r-- | components/drivers/src/pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/src/pipe.c b/components/drivers/src/pipe.c index 3f14e6a837..8a6c97aabf 100644 --- a/components/drivers/src/pipe.c +++ b/components/drivers/src/pipe.c @@ -224,7 +224,7 @@ rt_err_t rt_pipe_init(struct rt_pipe_device *pipe, pipe->flag = flag; /* create pipe */ - pipe->parent.type = RT_Device_Class_Char; + pipe->parent.type = RT_Device_Class_Pipe; pipe->parent.init = RT_NULL; pipe->parent.open = RT_NULL; pipe->parent.close = RT_NULL; |
