初级会员

- 积分
- 197
- 金钱
- 197
- 注册时间
- 2013-10-31
- 在线时间
- 26 小时
|
5金钱
[mw_shl_code=applescript,true]*** Using Compiler 'V5.06 update 3 (build 300)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'm1_lcd'
compiling stm32f4xx_it.c...
compiling stm32f4xx_hal_msp.c...
compiling main.c...
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(62): warning: #47-D: incompatible redefinition of macro "USB_OTG_SPEED_FULL" (declared at line 254 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
#define USB_OTG_SPEED_FULL 1
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(121): warning: #47-D: incompatible redefinition of macro "DSTS_ENUMSPD_HS_PHY_30MHZ_OR_60MHZ" (declared at line 281 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
#define DSTS_ENUMSPD_HS_PHY_30MHZ_OR_60MHZ 0
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(122): warning: #47-D: incompatible redefinition of macro "DSTS_ENUMSPD_FS_PHY_30MHZ_OR_60MHZ" (declared at line 282 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
#define DSTS_ENUMSPD_FS_PHY_30MHZ_OR_60MHZ 1
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(123): warning: #47-D: incompatible redefinition of macro "DSTS_ENUMSPD_LS_PHY_6MHZ" (declared at line 283 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
#define DSTS_ENUMSPD_LS_PHY_6MHZ 2
..\USB\STM32_USB_OTG_Driver\inc\usb_defines.h(124): warning: #47-D: incompatible redefinition of macro "DSTS_ENUMSPD_FS_PHY_48MHZ" (declared at line 284 of "..\HALLIB\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usb.h")
#define DSTS_ENUMSPD_FS_PHY_48MHZ 3
..\USB\STM32_USB_OTG_Driver\inc\usb_core.h(85): error: #101: "HC_IDLE" has already been declared in the current scope
HC_IDLE = 0,
..\USB\STM32_USB_OTG_Driver\inc\usb_core.h(98): error: #101: "URB_DONE" has already been declared in the current scope
URB_DONE,
..\USB\STM32_USB_OTG_Driver\inc\usb_core.h(99): error: #101: "URB_NOTREADY" has already been declared in the current scope
URB_NOTREADY,
..\USB\STM32_USB_OTG_Driver\inc\usb_core.h(100): error: #101: "URB_ERROR" has already been declared in the current scope
URB_ERROR,
..\USB\STM32_USB_OTG_Driver\inc\usb_core.h(101): error: #101: "URB_STALL" has already been declared in the current scope
URB_STALL
main.c(73): warning: #177-D: variable "offline_cnt" was declared but never referenced
|
最佳答案
查看完整内容[请看2#楼]
找到问题了
//#define HAL_PCD_MODULE_ENABLED
//#define HAL_HCD_MODULE_ENABLED
屏蔽掉就可以了 但不知是为什么
|