2012-01-08 22:14:54 +08:00
|
|
|
#ifndef __RT_DEVICE_H__
|
|
|
|
#define __RT_DEVICE_H__
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
2012-02-07 11:55:01 +08:00
|
|
|
#define RT_DEVICE(device) ((rt_device_t)device)
|
|
|
|
|
2012-01-08 22:14:54 +08:00
|
|
|
#ifdef RT_USING_SPI
|
|
|
|
#include "drivers/spi.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef RT_USING_MTD
|
|
|
|
#include "drivers/mtd.h"
|
|
|
|
#endif
|
|
|
|
|
2012-04-03 00:34:15 +08:00
|
|
|
#ifdef RT_USING_MTD_NAND
|
|
|
|
#include "drivers/mtd_nand.h"
|
|
|
|
#endif
|
|
|
|
|
2012-01-08 22:14:54 +08:00
|
|
|
#ifdef RT_USING_USB_DEVICE
|
|
|
|
#include "drivers/usb_device.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef RT_USING_USB_HOST
|
|
|
|
#include "drivers/usb_host.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|