mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 13:49:22 +08:00
4f458c68d2
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1939 bbd45198-f89e-11dd-88c7-29a3b14d5316
25 lines
364 B
C
25 lines
364 B
C
#ifndef __RT_DEVICE_H__
|
|
#define __RT_DEVICE_H__
|
|
|
|
#include <rtthread.h>
|
|
|
|
#define RT_DEVICE(device) ((rt_device_t)device)
|
|
|
|
#ifdef RT_USING_SPI
|
|
#include "drivers/spi.h"
|
|
#endif
|
|
|
|
#ifdef RT_USING_MTD
|
|
#include "drivers/mtd.h"
|
|
#endif
|
|
|
|
#ifdef RT_USING_USB_DEVICE
|
|
#include "drivers/usb_device.h"
|
|
#endif
|
|
|
|
#ifdef RT_USING_USB_HOST
|
|
#include "drivers/usb_host.h"
|
|
#endif
|
|
|
|
#endif
|