keil使用arm_math文件报错

引入该文件后编译报错

..\application\arm_math.h(306): error:  #35: #error directive: "Define according the used Cortex cor

添加如下全局宏定义

USE_HAL_DRIVER,STM32F407xx,ARM_MATH_CM4,__FPU_USED=1U,__FPU_PRESENT=1U,__CC_ARM,ARM_MATH_MATRIX_CHECK,ARM_MATH_ROUNDING

你可能感兴趣的:(单片机,stm32)