我觉得我环境配置应该没有问题 为什么会出现这个错 求指教 之前做m4都没出问题 这次开发m0就出这个问题希望 错误如下
C:Keil_v5ARMCMSISIncludecore_cmInstr.h(129): error: #20: identifier "__STATIC_INLINE" is undefined
__attribute__((section(".rev16_text"))) __STATIC_INLINE
_ASM uint32_t __REV16(uint32_t value)
C:Keil_v5ARMCMSISIncludecore_cmInstr.h(129): error: #101: "uint32_t" has already been declared in the current scope
__attribute__((section(".rev16_text"))) __STATIC_INLINE
_ASM uint32_t __REV16(uint32_t value)
C:Keil_v5ARMCMSISIncludecore_cmInstr.h(129): error: #65: expected a ";"
__attribute__((section(".rev16_text"))) __STATIC_INLINE
_ASM uint32_t __REV16(uint32_t value)
..COREcore_cm0.h(200): warning: #12-D: parsing restarts here after previous syntax error
} APSR_Type;
..COREcore_cm0.h(209): error: #757: variable "uint32_t" is not a type name
uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */
..COREcore_cm0.h(210): error: #757: variable "uint32_t" is not a type name
uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */
..COREcore_cm0.h(212): error: #757: variable "uint32_t" is not a type name
uint32_t w; /*!< Type used for word access */
..COREcore_cm0.h(222): error: #757: variable "uint32_t" is not a type name
uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */
..COREcore_cm0.h(224): error: #757: variable "uint32_t" is not a type name
uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */
..COREcore_cm0.h(230): error: #757: variable "uint32_t" is not a type name
uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */
..COREcore_cm0.h(231): error: #757: variable "uint32_t" is not a type name
uint32_t IT:2; /*!< bit: 25..26 saved IT state (read 0) */
..COREcore_cm0.h(232): error: #757: variable "uint32_t" is not a type name
uint32_t Q:1; /*!< bit: 27 Saturation condition flag */
..COREcore_cm0.h(233): error: #757: variable "uint32_t" is not a type name
uint32_t V:1; /*!< bit: 28 Overflow condition code flag */
..COREcore_cm0.h(234): error: #757: variable "uint32_t" is not a type name
uint32_t C:1; /*!< bit: 29 Carry condition code flag */
..COREcore_cm0.h(235): error: #757: variable "uint32_t" is not a type name
uint32_t Z:1; /*!< bit: 30 Zero condition code flag */
..COREcore_cm0.h(236): error: #757: variable "uint32_t" is not a type name
uint32_t N:1; /*!< bit: 31 Negative condition code flag */
..COREcore_cm0.h(238): error: #757: variable "uint32_t" is not a type name
uint32_t w; /*!< Type used for word access */
..COREcore_cm0.h(248): error: #757: variable "uint32_t" is not a type name
uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */
..COREcore_cm0.h(249): error: #757: variable "uint32_t" is not a type name
uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */
..COREcore_cm0.h(250): error: #757: variable "uint32_t" is not a type name
uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */
..COREcore_cm0.h(251): error: #757: variable "uint32_t" is not a type name
uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */
..COREcore_cm0.h(253): error: #757: variable "uint32_t" is not a type name
uint32_t w; /*!< Type used for word access */
..COREcore_cm0.h(269): error: #757: variable "uint32_t" is not a type name
_IO uint32_t ISER[1]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */
..COREcore_cm0.h(270): error: #757: variable "uint32_t" is not a type name
uint32_t RESERVED0[31];
..COREcore_cm0.h(271): error: #757: variable "uint32_t" is not a type name
_IO uint32_t ICER[1]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */
..COREcore_cm0.h(272): error: #757: variable "uint32_t" is not a type name
uint32_t RSERVED1[31];
..COREcore_cm0.h(273): error: #757: variable "uint32_t" is not a type name
_IO uint32_t ISPR[1]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */
..COREcore_cm0.h(274): error: #757: variable "uint32_t" is not a type name
uint32_t RESERVED2[31];
..COREcore_cm0.h(275): error: #757: variable "uint32_t" is not a type name
_IO uint32_t ICPR[1]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */
..COREcore_cm0.h(276): error: #757: variable "uint32_t" is not a type name
uint32_t RESERVED3[31];
..COREcore_cm0.h(277): error: #757: variable "uint32_t" is not a type name
uint32_t RESERVED4[64];
..HARDWAREADCadc.c: 1 warning, 30 errors
一周热门 更多>