问题主要在:
stm32f10x_type.h文件中定义了
typedef signed long s32;
而
stm32f10x.h
typedef int32_t s32;
结果编译时产生了大量的这类错误
C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h(23): error: #256: invalid redeclaration of type name "s32" (declared at line 312 of "C:\Keil\ARM\INC\ST\STM32F10x\stm32f10x.h") |