drv_usbotg.h 734 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-02-28 shelton first version
  9. */
  10. #ifndef __DRV_USBOTG_H__
  11. #define __DRV_USBOTG_H__
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. #include "drv_common.h"
  15. #if defined(BSP_USING_HOST_USBOTG1) || defined(BSP_USING_HOST_USBOTG2) || \
  16. defined(BSP_USING_DEVICE_USBOTG1) || defined(BSP_USING_DEVICE_USBOTG2)
  17. #include "usb_core.h"
  18. struct at32_usbotg {
  19. char *name;
  20. otg_core_type *p_otg_core;
  21. otg_id_type id;
  22. usb_speed_type dev_spd;
  23. IRQn_Type irqn;
  24. };
  25. #endif
  26. #endif /* __DRV_USBOTG_H__ */
  27. /******************* end of file *******************/