cancel
Showing results for 
Search instead for 
Did you mean: 

Why does usb_bsp.h include stm32f4_discovery.h?

denis239955
Associate
Posted on September 03, 2014 at 23:30

The STM32F4-Discovery_FW_V1.1.0 library has USB code that I'm using in an STM32F4 project for USB HID support.  usb_bsp.h has the board support package function definitions.  I'm implementing these for my own custom board and everything is working fine.  There is however, one odd thing.  usb_bsp.h also includes stm32f4_discovery.h, but apparently doesn't use anything from that include.  So to get my code to compile I need to put an empty 

stm32f4_discovery.h file in the include path.  Seems like this is a bug and the include of 

stm32f4_discovery.h should be removed from usb_bsp.h.

1 REPLY 1
Posted on September 03, 2014 at 23:39

Doesn't it pull in stm32f4xx.h, and by inference stm32f4xx_conf.h

Replace with your own board specific stuff, or just use stm32f4xx.h
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..