rtdevice.h 427 B

12345678910111213141516171819202122232425262728
  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_MTD_NAND
  12. #include "drivers/mtd_nand.h"
  13. #endif
  14. #ifdef RT_USING_USB_DEVICE
  15. #include "drivers/usb_device.h"
  16. #endif
  17. #ifdef RT_USING_USB_HOST
  18. #include "drivers/usb_host.h"
  19. #endif
  20. #endif