summaryrefslogtreecommitdiff
path: root/components/drivers/include/rtdevice.h
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-02-07 03:55:01 +0000
committer[email protected] <[email protected]>2012-02-07 03:55:01 +0000
commit4f458c68d223d4eb01019fa74242e5201ba8f906 (patch)
tree27414393cd657f0617960fbba4378948167f6fd4 /components/drivers/include/rtdevice.h
parenta5e0a4526afda18ac1ea7300e04231e27933bd4b (diff)
add MTD device.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1939 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/include/rtdevice.h')
-rw-r--r--components/drivers/include/rtdevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h
index 41ce642556..e6b7dddd40 100644
--- a/components/drivers/include/rtdevice.h
+++ b/components/drivers/include/rtdevice.h
@@ -3,6 +3,8 @@
#include <rtthread.h>
+#define RT_DEVICE(device) ((rt_device_t)device)
+
#ifdef RT_USING_SPI
#include "drivers/spi.h"
#endif