-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Open
Labels
BSP: STM32BSP related with ST/STM32BSP related with ST/STM32
Description
stm32f10xxx.h中,stm32f105/107系列支持otg芯片使用USB_OTG_FS,f103系列使用的是USB。
stm32f1xx_hal_pcd_ex.c描述定义了USB后可以使用HAL_PCDEx_PMAConfig这个函数。
但rt-thread的适配驱动中,usbd_config.h使用的确是USB的宏定义;drv_usbd.c的_init(rt_device_t device)函数中只要是stm32f1系列都是调用HAL_PCDEx_PMAConfig函数。
这就导致了F105、F107系列打开USB DEVICE设备后编译不通过,F103系列正常。
Metadata
Metadata
Assignees
Labels
BSP: STM32BSP related with ST/STM32BSP related with ST/STM32