usbd_config.h 669 字节
Newer Older
gyd0317's avatar
gyd0317 已提交
1
/*
mysterywolf's avatar
mysterywolf 已提交
2
 * Copyright (c) 2006-2023, RT-Thread Development Team
gyd0317's avatar
gyd0317 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
 *
 * 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
 */
#ifndef __USBD_CONFIG_H__
#define __USBD_CONFIG_H__

#define USBD_IRQ_TYPE        USB_LP_IRQn
#define USBD_IRQ_HANDLER     USB_LP_IRQHandler
#define USBD_INSTANCE        USB
#define USBD_PCD_SPEED       PCD_SPEED_FULL
#define USBD_PCD_PHY_MODULE  PCD_PHY_EMBEDDED

#ifndef BSP_USB_CONNECT_PIN
#define BSP_USB_CONNECT_PIN  -1
#endif

#ifndef BSP_USB_PULL_UP_STATUS
#define BSP_USB_PULL_UP_STATUS  1
#endif
#endif