From d228266e65a4473ecd5ee3680229c4ae3f7e389e Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Mon, 18 Jun 2012 03:11:40 +0000 Subject: [PATCH] Remove I2C device and add PM pseudo device. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2171 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/drivers/include/rtdevice.h | 4 ++++ components/finsh/cmd.c | 2 +- include/rtdef.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index e1fcc2f9a..d7a6bf5ad 100644 --- a/components/drivers/include/rtdevice.h +++ b/components/drivers/include/rtdevice.h @@ -85,4 +85,8 @@ rt_size_t rt_ringbuffer_emptry_size(struct rt_ringbuffer* rb); #endif /* RT_USING_I2C */ +#ifdef RT_USING_PM +#include "drivers/pm.h" +#endif + #endif /* __RT_DEVICE_H__ */ diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index 4bc73efea..b46fd0ac3 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -387,12 +387,12 @@ static long _list_device(struct rt_list_node *list) "Sound Device", "Graphic Device", "I2C Bus", - "I2C Device", "USB Slave Device", "USB Host Bus", "SPI Bus", "SPI Device", "SDIO Bus", + "PM Pseudo Device", "Unknown" }; diff --git a/include/rtdef.h b/include/rtdef.h index 213eb1dd1..b5b312668 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -636,12 +636,12 @@ enum rt_device_class_type RT_Device_Class_Sound, /**< Sound device */ RT_Device_Class_Graphic, /**< Graphic device */ RT_Device_Class_I2CBUS, /**< I2C bus device */ - RT_Device_Class_I2CDevice, /**< I2C device */ RT_Device_Class_USBDevice, /**< USB slave device */ 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_PM, /**< PM pseudo device */ RT_Device_Class_Unknown /**< unknown device */ };