1 /* 2 * Copyright (c) 2006-2023, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2019-04-10 ZYH first version 9 * 2019-07-29 Chinese66 change from f4 to f1 10 */ 11 #ifndef __USBD_CONFIG_H__ 12 #define __USBD_CONFIG_H__ 13 14 #define USBD_IRQ_TYPE USB_LP_IRQn 15 #define USBD_IRQ_HANDLER USB_LP_IRQHandler 16 #define USBD_INSTANCE USB 17 #define USBD_PCD_SPEED PCD_SPEED_FULL 18 #define USBD_PCD_PHY_MODULE PCD_PHY_EMBEDDED 19 20 #ifndef BSP_USB_CONNECT_PIN 21 #define BSP_USB_CONNECT_PIN -1 22 #endif 23 24 #ifndef BSP_USB_PULL_UP_STATUS 25 #define BSP_USB_PULL_UP_STATUS 1 26 #endif 27 #endif 28