blob: 583c9afe0762c59246789ca33ca6685eed7b0329 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#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_MTD_NAND
#include "drivers/mtd_nand.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
|