浏览代码

Merge pull request #2908 from Chinese66/add_f1_usb

添加f1的usbd驱动
Bernard Xiong 5 年之前
父节点
当前提交
358bf3483c

+ 18 - 0
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

+ 1 - 0
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"