Hi everyone, I am facing a issue to compile ugfx library code with KEIL MDK 5. I don't know why the drivers provide by ugfx for STM32f7 coudn't work well with stm32 cube .h files..
Here I attach my compile error for more understanding everyone.
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio.h(256): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_GPIO_LockPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h(162): error: #20: identifier "HAL_LockTypeDef" is undefined
HAL_LockTypeDef Lock; /*!< DMA locking object */
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h(130): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h(131): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMAEx_MultiBufferStart_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t SecondMemAddress, uint32_t DataLength);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h(132): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMAEx_ChangeMemory(DMA_HandleTypeDef *hdma, uint32_t Address, HAL_DMA_MemoryTypeDef memory);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h(645): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h(646): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMA_DeInit(DMA_HandleTypeDef *hdma);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h(655): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMA_Start (DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h(656): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h(657): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h(658): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h(659): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMA_PollForTransfer(DMA_HandleTypeDef *hdma, HAL_DMA_LevelCompleteTypeDef CompleteLevel, uint32_t Timeout);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h(661): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMA_CleanCallbacks(DMA_HandleTypeDef *hdma);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h(662): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMA_RegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID, void (* pCallback)(DMA_HandleTypeDef *_hdma));
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h(663): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DMA_UnRegisterCallback(DMA_HandleTypeDef *hdma, HAL_DMA_CallbackIDTypeDef CallbackID);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc.h(220): error: #20: identifier "HAL_LockTypeDef" is undefined
HAL_LockTypeDef Lock; /*!< ADC locking object */
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h(258): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADCEx_InjectedStart(ADC_HandleTypeDef* hadc);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h(259): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADCEx_InjectedStop(ADC_HandleTypeDef* hadc);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h(260): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADCEx_InjectedPollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeout);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h(261): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADCEx_InjectedStart_IT(ADC_HandleTypeDef* hadc);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h(262): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADCEx_InjectedStop_IT(ADC_HandleTypeDef* hadc);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h(264): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADCEx_MultiModeStart_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h(265): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADCEx_MultiModeStop_DMA(ADC_HandleTypeDef* hadc);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h(270): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADCEx_InjectedConfigChannel(ADC_HandleTypeDef* hadc,ADC_InjectionConfTypeDef* sConfigInjected);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h(271): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel(ADC_HandleTypeDef* hadc, ADC_MultiModeTypeDef* multimode);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc.h(569): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc.h(570): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADC_DeInit(ADC_HandleTypeDef *hadc);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc.h(581): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef* hadc);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc.h(582): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADC_Stop(ADC_HandleTypeDef* hadc);
../Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc.h(583): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_ADC_PollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeout);
..\..\ugfx\drivers\gdisp\STM32LTDC\gdisp_lld_STM32LTDC.c: 0 warnings, 30 errors
Thank you guys.