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 
11 #ifndef __DRV_USBOTG_H__
12 #define __DRV_USBOTG_H__
13 
14 #include <rtthread.h>
15 #include <rtdevice.h>
16 #include "drv_common.h"
17 
18 #if defined(BSP_USING_HOST_USBOTG1)   || defined(BSP_USING_HOST_USBOTG2)  || \
19     defined(BSP_USING_DEVICE_USBOTG1) || defined(BSP_USING_DEVICE_USBOTG2)
20 #include "usb_core.h"
21 
22 struct at32_usbotg {
23     char *name;
24     otg_core_type *p_otg_core;
25     otg_id_type id;
26     usb_speed_type dev_spd;
27     IRQn_Type irqn;
28 };
29 #endif
30 #endif /* __DRV_USBOTG_H__ */
31 
32 /******************* end of file *******************/
33