2023-02-25 10:47:04 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2023-02-28 shelton first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DRV_USBFS_H__
|
|
|
|
#define __DRV_USBFS_H__
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
#include <rtdevice.h>
|
|
|
|
#include "drv_common.h"
|
2023-02-27 14:59:47 +08:00
|
|
|
|
|
|
|
#if defined(BSP_USING_HOST_USBFS1) || defined(BSP_USING_HOST_USBFS2) || \
|
|
|
|
defined(BSP_USING_DEVICE_USBFS1) || defined(BSP_USING_DEVICE_USBFS2)
|
2023-02-25 10:47:04 +08:00
|
|
|
#include "usb_core.h"
|
|
|
|
|
|
|
|
struct at32_usbfs {
|
|
|
|
char *name;
|
|
|
|
otg_core_type *p_otg_core;
|
|
|
|
otg_id_type id;
|
|
|
|
IRQn_Type irqn;
|
|
|
|
};
|
2023-02-27 14:59:47 +08:00
|
|
|
#endif
|
2023-02-25 10:47:04 +08:00
|
|
|
#endif /* __DRV_USBFS_H__ */
|
|
|
|
|
|
|
|
/******************* end of file *******************/
|