新手入门
- 积分
- 12
- 金钱
- 12
- 注册时间
- 2017-7-8
- 在线时间
- 4 小时
|
我觉得我环境配置应该没有问题 为什么会出现这个错 求指教 之前做m4都没出问题 这次开发m0就出这个问题希望 错误如下
C:\Keil_v5\ARM\CMSIS\Include\core_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_v5\ARM\CMSIS\Include\core_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_v5\ARM\CMSIS\Include\core_cmInstr.h(129): error: #65: expected a ";"
__attribute__((section(".rev16_text"))) __STATIC_INLINE
_ASM uint32_t __REV16(uint32_t value)
..\CORE\core_cm0.h(200): warning: #12-D: parsing restarts here after previous syntax error
} APSR_Type;
..\CORE\core_cm0.h(209): error: #757: variable "uint32_t" is not a type name
uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */
..\CORE\core_cm0.h(210): error: #757: variable "uint32_t" is not a type name
uint32_t _reserved0:23; /*!< bit: 9..31 Reserved */
..\CORE\core_cm0.h(212): error: #757: variable "uint32_t" is not a type name
uint32_t w; /*!< Type used for word access */
..\CORE\core_cm0.h(222): error: #757: variable "uint32_t" is not a type name
uint32_t ISR:9; /*!< bit: 0.. 8 Exception number */
..\CORE\core_cm0.h(224): error: #757: variable "uint32_t" is not a type name
uint32_t _reserved0:15; /*!< bit: 9..23 Reserved */
..\CORE\core_cm0.h(230): error: #757: variable "uint32_t" is not a type name
uint32_t T:1; /*!< bit: 24 Thumb bit (read 0) */
..\CORE\core_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) */
..\CORE\core_cm0.h(232): error: #757: variable "uint32_t" is not a type name
uint32_t Q:1; /*!< bit: 27 Saturation condition flag */
..\CORE\core_cm0.h(233): error: #757: variable "uint32_t" is not a type name
uint32_t V:1; /*!< bit: 28 Overflow condition code flag */
..\CORE\core_cm0.h(234): error: #757: variable "uint32_t" is not a type name
uint32_t C:1; /*!< bit: 29 Carry condition code flag */
..\CORE\core_cm0.h(235): error: #757: variable "uint32_t" is not a type name
uint32_t Z:1; /*!< bit: 30 Zero condition code flag */
..\CORE\core_cm0.h(236): error: #757: variable "uint32_t" is not a type name
uint32_t N:1; /*!< bit: 31 Negative condition code flag */
..\CORE\core_cm0.h(238): error: #757: variable "uint32_t" is not a type name
uint32_t w; /*!< Type used for word access */
..\CORE\core_cm0.h(248): error: #757: variable "uint32_t" is not a type name
uint32_t nPRIV:1; /*!< bit: 0 Execution privilege in Thread mode */
..\CORE\core_cm0.h(249): error: #757: variable "uint32_t" is not a type name
uint32_t SPSEL:1; /*!< bit: 1 Stack to be used */
..\CORE\core_cm0.h(250): error: #757: variable "uint32_t" is not a type name
uint32_t FPCA:1; /*!< bit: 2 FP extension active flag */
..\CORE\core_cm0.h(251): error: #757: variable "uint32_t" is not a type name
uint32_t _reserved0:29; /*!< bit: 3..31 Reserved */
..\CORE\core_cm0.h(253): error: #757: variable "uint32_t" is not a type name
uint32_t w; /*!< Type used for word access */
..\CORE\core_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 */
..\CORE\core_cm0.h(270): error: #757: variable "uint32_t" is not a type name
uint32_t RESERVED0[31];
..\CORE\core_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 */
..\CORE\core_cm0.h(272): error: #757: variable "uint32_t" is not a type name
uint32_t RSERVED1[31];
..\CORE\core_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 */
..\CORE\core_cm0.h(274): error: #757: variable "uint32_t" is not a type name
uint32_t RESERVED2[31];
..\CORE\core_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 */
..\CORE\core_cm0.h(276): error: #757: variable "uint32_t" is not a type name
uint32_t RESERVED3[31];
..\CORE\core_cm0.h(277): error: #757: variable "uint32_t" is not a type name
uint32_t RESERVED4[64];
..\HARDWARE\ADC\adc.c: 1 warning, 30 errors
|
-
|