I am taking code from a stm32f0 series and trying to convert it to a stm32l4 series dev kit. I have already changed the necessary addresses and include files that I needed to migrate, but I keep on getting the following errors in the stm32l4xx_hal_uart Files:
../Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal.h:610:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_RTCStateTypeDef'? HAL_StatusTypeDef HAL_DeInit(void); ^~~~~~~~~~~~~~~~~
The error appears by this segment of code:
HAL_StatusTypeDef HAL_HalfDuplex_Init(UART_HandleTypeDef *huart);
I have already defined the HAL_UART_MODULE_ENABLED in the stm32l4xx_hal_conf.h and nothing has changed.
What is the cause of this and how can I fix it?