2019-07-29 21:37:35 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2019-04-10 ZYH first version
|
|
|
|
* 2019-07-29 Chinese66 change from f4 to f1
|
|
|
|
*/
|
2019-10-27 21:06:27 +08:00
|
|
|
#ifndef __USBD_CONFIG_H__
|
|
|
|
#define __USBD_CONFIG_H__
|
2019-07-29 21:37:35 +08:00
|
|
|
|
2019-10-30 23:50:58 +08:00
|
|
|
#define USBD_IRQ_TYPE USB_LP_CAN1_RX0_IRQn
|
2019-10-27 21:06:27 +08:00
|
|
|
#define USBD_IRQ_HANDLER USB_LP_CAN1_RX0_IRQHandler
|
2019-07-29 21:37:35 +08:00
|
|
|
#define USBD_INSTANCE USB
|
2019-10-27 21:06:27 +08:00
|
|
|
#define USBD_PCD_SPEED PCD_SPEED_FULL
|
|
|
|
#define USBD_PCD_PHY_MODULE PCD_PHY_EMBEDDED
|
2019-10-30 23:50:58 +08:00
|
|
|
|
|
|
|
#ifndef BSP_USB_CONNECT_PIN
|
2019-07-29 21:37:35 +08:00
|
|
|
#define BSP_USB_CONNECT_PIN -1
|
2019-10-30 23:50:58 +08:00
|
|
|
#endif
|
2019-07-29 21:37:35 +08:00
|
|
|
|
2019-10-30 23:50:58 +08:00
|
|
|
#ifndef BSP_USB_PULL_UP_STATUS
|
|
|
|
#define BSP_USB_PULL_UP_STATUS 1
|
|
|
|
#endif
|
2019-07-29 21:37:35 +08:00
|
|
|
#endif
|