Remove I2C device and add PM pseudo device.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2171 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
efeb6231be
commit
d228266e65
|
@ -85,4 +85,8 @@ rt_size_t rt_ringbuffer_emptry_size(struct rt_ringbuffer* rb);
|
||||||
|
|
||||||
#endif /* RT_USING_I2C */
|
#endif /* RT_USING_I2C */
|
||||||
|
|
||||||
|
#ifdef RT_USING_PM
|
||||||
|
#include "drivers/pm.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __RT_DEVICE_H__ */
|
#endif /* __RT_DEVICE_H__ */
|
||||||
|
|
|
@ -387,12 +387,12 @@ static long _list_device(struct rt_list_node *list)
|
||||||
"Sound Device",
|
"Sound Device",
|
||||||
"Graphic Device",
|
"Graphic Device",
|
||||||
"I2C Bus",
|
"I2C Bus",
|
||||||
"I2C Device",
|
|
||||||
"USB Slave Device",
|
"USB Slave Device",
|
||||||
"USB Host Bus",
|
"USB Host Bus",
|
||||||
"SPI Bus",
|
"SPI Bus",
|
||||||
"SPI Device",
|
"SPI Device",
|
||||||
"SDIO Bus",
|
"SDIO Bus",
|
||||||
|
"PM Pseudo Device",
|
||||||
"Unknown"
|
"Unknown"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -636,12 +636,12 @@ enum rt_device_class_type
|
||||||
RT_Device_Class_Sound, /**< Sound device */
|
RT_Device_Class_Sound, /**< Sound device */
|
||||||
RT_Device_Class_Graphic, /**< Graphic device */
|
RT_Device_Class_Graphic, /**< Graphic device */
|
||||||
RT_Device_Class_I2CBUS, /**< I2C bus device */
|
RT_Device_Class_I2CBUS, /**< I2C bus device */
|
||||||
RT_Device_Class_I2CDevice, /**< I2C device */
|
|
||||||
RT_Device_Class_USBDevice, /**< USB slave 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_SPIBUS, /**< SPI bus device */
|
||||||
RT_Device_Class_SPIDevice, /**< SPI device */
|
RT_Device_Class_SPIDevice, /**< SPI device */
|
||||||
RT_Device_Class_SDIO, /**< SDIO bus device */
|
RT_Device_Class_SDIO, /**< SDIO bus device */
|
||||||
|
RT_Device_Class_PM, /**< PM pseudo device */
|
||||||
RT_Device_Class_Unknown /**< unknown device */
|
RT_Device_Class_Unknown /**< unknown device */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue