drv_usbfs.h 698 B

12345678910111213141516171819202122232425262728293031
  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_USBFS_H__
  11. #define __DRV_USBFS_H__
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. #include "drv_common.h"
  15. #if defined(BSP_USING_HOST_USBFS1) || defined(BSP_USING_HOST_USBFS2) || \
  16. defined(BSP_USING_DEVICE_USBFS1) || defined(BSP_USING_DEVICE_USBFS2)
  17. #include "usb_core.h"
  18. struct at32_usbfs {
  19. char *name;
  20. otg_core_type *p_otg_core;
  21. otg_id_type id;
  22. IRQn_Type irqn;
  23. };
  24. #endif
  25. #endif /* __DRV_USBFS_H__ */
  26. /******************* end of file *******************/