usbd_config.h 687 B

123456789101112131415161718192021222324252627
  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. #define USBD_IRQ_TYPE USB_LP_CAN1_RX0_IRQn
  14. #define USBD_IRQ_HANDLER USB_LP_CAN1_RX0_IRQHandler
  15. #define USBD_INSTANCE USB
  16. #define USBD_PCD_SPEED PCD_SPEED_FULL
  17. #define USBD_PCD_PHY_MODULE PCD_PHY_EMBEDDED
  18. #ifndef BSP_USB_CONNECT_PIN
  19. #define BSP_USB_CONNECT_PIN -1
  20. #endif
  21. #ifndef BSP_USB_PULL_UP_STATUS
  22. #define BSP_USB_PULL_UP_STATUS 1
  23. #endif
  24. #endif