Browse Source

[bsp][stm32] Add usb configuration for L4 series

guozhanxin 6 years ago
parent
commit
3a5a2ff5a3

+ 15 - 0
bsp/stm32/libraries/HAL_Drivers/config/l4/usbd_fs_config.h

@@ -0,0 +1,15 @@
+/*
+ * 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
+ */
+#ifndef __USBD_FS_CONFIG_H__
+#define __USBD_FS_CONFIG_H__
+
+#define USBD_FS_IRQ_HANDLER OTG_FS_IRQHandler
+#define USBD_INSTANCE       USB_OTG_FS
+#endif

+ 1 - 0
bsp/stm32/libraries/HAL_Drivers/drv_config.h

@@ -64,6 +64,7 @@ extern "C" {
 #include "l4/tim_config.h"
 #include "l4/sdio_config.h"
 #include "l4/pwm_config.h"
+#include "l4/usbd_fs_config.h"
 #elif  defined(SOC_SERIES_STM32G0)
 #include "g0/dma_config.h"
 #include "g0/uart_config.h"