diff options
| author | [email protected] <[email protected]> | 2011-12-11 15:14:25 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-12-11 15:14:25 +0000 |
| commit | f6f81eb0ceed924ebfbbee806ea34e5ae792ebea (patch) | |
| tree | af069d2292b6665fea6d7227a71af3f23e628e35 /include/rtdef.h | |
| parent | adb734ec50e2d3ac196a81cddc7554f1c30694ea (diff) | |
Add more device type.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1835 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include/rtdef.h')
| -rw-r--r-- | include/rtdef.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 1314a20cc1..f48563a2be 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -147,10 +147,10 @@ typedef rt_base_t rt_off_t; /**< Type for offset #define RT_EEMPTY 4 /**< The resource is empty */ #define RT_ENOMEM 5 /**< No memory */ #define RT_ENOSYS 6 /**< No system */ -#define RT_EBUSY 7 /**< Busy */ +#define RT_EBUSY 7 /**< Busy */
+#define RT_EIO 8 /**< IO error */ /*@}*/ - /** * @ingroup BasicDef * @@ -577,7 +577,10 @@ enum rt_device_class_type RT_Device_Class_Graphic, /**< Graphic device */ RT_Device_Class_I2C, /**< I2C device */ RT_Device_Class_USBDevice, /**< USB slave device */ - RT_Device_Class_USBHost, /**< USB host bus */ + RT_Device_Class_USBHost, /**< USB host bus */
+ RT_Device_Class_SPIBUS, /**< SPI bus device */
+ RT_Device_Class_SPIDevice, /**< SPI device */
+ RT_Device_Class_SDIO, /**< SDIO bus device */ RT_Device_Class_Unknown /**< unknown device */ }; |
