rtdevice.h 364 B

123456789101112131415161718192021222324
  1. #ifndef __RT_DEVICE_H__
  2. #define __RT_DEVICE_H__
  3. #include <rtthread.h>
  4. #define RT_DEVICE(device) ((rt_device_t)device)
  5. #ifdef RT_USING_SPI
  6. #include "drivers/spi.h"
  7. #endif
  8. #ifdef RT_USING_MTD
  9. #include "drivers/mtd.h"
  10. #endif
  11. #ifdef RT_USING_USB_DEVICE
  12. #include "drivers/usb_device.h"
  13. #endif
  14. #ifdef RT_USING_USB_HOST
  15. #include "drivers/usb_host.h"
  16. #endif
  17. #endif