Problem with finding HAL_StatusTypeDef
Found a solution. Moved definition of HAL_StatusTypeDef from stm32l1xx_hal_def.h to stm32l1xx_hal_conf.h and my project have compiled.
Basicaly it means that I moved this definition a couple of levels higher in defines.
Are there any limitations in number of definitions levels?
And somehow it is related to using USART/UART. I got that error only after I added UART initialization. SPI also uses this type, and there was no problem with its initialization.