STM32F4 HAL library build errors.
I am getting compile error in a lot of HAL files (gpio, rcc , spi). The error is for registers and peripherals which are not present in F407 but are present in F42/43 like. Since the HAL files are common for whole F4 series, these regs and functions are defined in HAL files.
>> GPIOJ and GPIOK check done in "IS_GPIO_ALL_PERIPH".
>> SPI peripherals which are not present in F407 like SPI4 and forwards.
>> RCC_SAIPLLSAIClkDivConfig and other PLLSAI related functions and definitions in rcc.h
Some of the functions have "#if defined (STM32F427_437xx)" but a lot others do not. Also some function are used in for all controllers within the series and hence have registers used for higher controllers too like the "GPIO_DeInit" function in hal_gpio.c.
I have stm32f4xx.h included in my project which has definitions for registers of F407 and hence registers like GPIOJ/GPIOk; SPI4 and onwards are not defined in this .h file.
I wanted to know how can I use the HAL library for F407 without modifying anything in it. I downloaded the zipped library from github page of ST.
