RT-Thread / rt-thread

RT-Thread is an open source IoT Real-Time Operating System (RTOS).
https://www.rt-thread.io
Apache License 2.0
10.59k stars 5.03k forks source link

stm32f7 usb问题 #5957

Open Luviewer opened 2 years ago

Luviewer commented 2 years ago

stm32f7 usb问题: rt-thread/bsp/stm32/libraries/HAL_Drivers/drv_usbd.c:199:21: error: 'USBD_INSTANCE' undeclared (first use in this function); did you mean 'IS_TIM_INSTANCE'? pcd->Instance = USBD_INSTANCE; ^~~~~ IS_TIM_INSTANCE rt-thread/bsp/stm32/libraries/HAL_Drivers/drv_usbd.c:202:23: error: 'USBD_PCD_SPEED' undeclared (first use in this function); did you mean 'USBD_HS_SPEED'? pcd->Init.speed = USBD_PCD_SPEED; ^~~~~~ USBD_HS_SPEED

Luviewer commented 2 years ago

我用的是4.1.0版本的rt-thread,在stm32f7上使用usb出现这种问题,请问怎么解决