HAL库移植出现 error: unknown type name ‘HAL_StatusTypeDef‘ error: unknown type name ‘HAL_LockTypeDef‘

HAL库移植出现 error: unknown type name ‘HAL_StatusTypeDef‘ error: unknown type name ‘HAL_LockTypeDef‘_第1张图片

HAL库移植出现 error: unknown type name ‘HAL_StatusTypeDef‘ error: unknown type name ‘HAL_LockTypeDef‘_第2张图片

 

../hal_driver/Inc\stm32f1xx_hal_spi.h(28): warning: In file included from...
../hal_driver/Inc/stm32f1xx_hal_def.h(29): warning: In file included from...
../cmsis\stm32f1xx.h(254): warning: In file included from...
../hal_driver/Inc\stm32f1xx_hal.h(29): warning: In file included from...
../hal_driver/Inc/stm32f1xx_hal_conf.h(242): warning: In file included from...
../hal_driver/Inc/stm32f1xx_hal_rcc.h(1142): warning: In file included from...
../hal_driver/Inc/stm32f1xx_hal_rcc_ex.h(1857): error: unknown type name 'HAL_StatusTypeDef'
HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef  *PeriphClkInit);
^

../hal_driver/Inc\stm32f1xx_hal_spi.h(28): warning: In file included from...
../hal_driver/Inc/stm32f1xx_hal_def.h(29): warning: In file included from...
../cmsis\stm32f1xx.h(254): warning: In file included from...
../hal_driver/Inc\stm32f1xx_hal.h(29): warning: In file included from...
../hal_driver/Inc/stm32f1xx_hal_conf.h(242): warning: In file included from...
../hal_driver/Inc/stm32f1xx_hal_rcc.h(1154): error:

你可能感兴趣的:(问题及解决方案,技术杂谈,单片机,stm32,嵌入式硬件)