drv_usbh.h 691 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-02-16 Tuber first version
  9. */
  10. #ifndef __DRV_USBH_H__
  11. #define __DRV_USBH_H__
  12. #include <rtthread.h>
  13. #define USB_PID_SETUP 0x0D
  14. #define USB_PID_IN 0x09
  15. #define USB_PID_OUT 0x01
  16. #define USB_PID_SOF 0x05
  17. #define USB_PID_ACK 0x02
  18. #define USB_PID_NAK 0x0A
  19. #define USB_PID_STALL 0x0E
  20. #define USB_PID_DATA0 0x03
  21. #define USB_PID_DATA1 0x0B
  22. #define USB_PID_PRE 0x0C
  23. int rt_hw_usbh_init(void);
  24. #endif