usbhost.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * File : usbhost.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2011, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2011-3-12 Yi Qiu first version
  13. */
  14. #ifndef __RT_USB_HOST_INIT_H__
  15. #define __RT_USB_HOST_INIT_H__
  16. #include <rtthread.h>
  17. #include "driver.h"
  18. #define RT_DEBUG_USB 1
  19. void rt_usbhost_init(void);
  20. void rt_usb_system_init(void);
  21. /* usb class driver definition */
  22. ucd_t rt_usb_class_driver_hid(void);
  23. ucd_t rt_usb_class_driver_hub(void);
  24. ucd_t rt_usb_class_driver_storage(void);
  25. ucd_t rt_usb_class_driver_adk(void);
  26. /* usb hid protocal definition */
  27. uprotocal_t rt_usb_hid_protocal_kbd(void);
  28. uprotocal_t rt_usb_hid_protocal_mouse(void);
  29. /* usb host controller driver definition */
  30. rt_device_t rt_usb_hcd_musb(void);
  31. rt_device_t rt_usb_hcd_ohci(void);
  32. rt_device_t rt_usb_hcd_susb(void);
  33. #endif