From 6f7749bb07f742574e764fa3e91bcb9f2961b5b6 Mon Sep 17 00:00:00 2001 From: Chinese66 <1032921868@qq.com> Date: Mon, 29 Jul 2019 21:37:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0f1=E7=9A=84usbd=E9=A9=B1?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HAL_Drivers/config/f1/usbd_fs_config.h | 18 ++++++++++++++++++ bsp/stm32/libraries/HAL_Drivers/drv_config.h | 1 + 2 files changed, 19 insertions(+) create mode 100644 bsp/stm32/libraries/HAL_Drivers/config/f1/usbd_fs_config.h diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f1/usbd_fs_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f1/usbd_fs_config.h new file mode 100644 index 0000000000..520934aa4b --- /dev/null +++ b/bsp/stm32/libraries/HAL_Drivers/config/f1/usbd_fs_config.h @@ -0,0 +1,18 @@ +/* + * 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 + */ +#ifndef __USBD_FS_CONFIG_H__ +#define __USBD_FS_CONFIG_H__ + +#define USBD_FS_IRQ_HANDLER USB_LP_CAN1_RX0_IRQHandler +#define USBD_INSTANCE USB +#define BSP_USB_CONNECT_PIN -1 + +#endif diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_config.h b/bsp/stm32/libraries/HAL_Drivers/drv_config.h index 999480a388..639c1151a6 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/drv_config.h @@ -33,6 +33,7 @@ extern "C" { #include "f1/tim_config.h" #include "f1/sdio_config.h" #include "f1/pwm_config.h" +#include "f1/usbd_fs_config.h" #elif defined(SOC_SERIES_STM32F2) #include "f2/dma_config.h" #include "f2/uart_config.h" -- GitLab