STM32f10x_type.h文件--变量类型

本文详细介绍了STM32F10x系列微控制器中使用的各种数据类型定义,包括基本类型如s32、u32及其常量和易失型变体,布尔类型bool,状态类型FlagStatus等,并给出了各类型的最大最小值定义。

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM32F10x_TYPE_H
#define __STM32F10x_TYPE_H

/* Includes ------------------------------------------------------------------*/
/* Exported types ------------------------------------------------------------*/
typedef signed long  s32;
typedef signed short s16;
typedef signed char  s8;

typedef signed long  const sc32;  /* Read Only */
typedef signed short const sc16;  /* Read Only */
typedef signed char  const sc8;   /* Read Only */

typedef volatile signed long  vs32;
typedef volatile signed short vs16;
typedef volatile signed char  vs8;

typedef volatile signed long  const vsc32;  /* Read Only */
typedef volatile signed short const vsc16;  /* Read Only */
typedef volatile signed char  const vsc8;   /* Read Only */

typedef unsigned long  u32;
typedef unsigned short u16;
typedef unsigned char  u8;

typedef unsigned long  const uc32;  /* Read Only */
typedef unsigned short const uc16;  /* Read Only */
typedef unsigned char  const uc8;   /* Read Only */

typedef volatile unsigned long  vu32;
typedef volatile unsigned short vu16;
typedef volatile unsigned char  vu8;

typedef volatile unsigned long  const vuc32;  /* Read Only */
typedef volatile unsigned short const vuc16;  /* Read Only */
typedef volatile unsigned char  const vuc8;   /* Read Only */

typedef enum {FALSE = 0, TRUE = !FALSE} bool;

typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus;

typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState;
#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))

typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrorStatus;

#define U8_MAX     ((u8)255)
#define S8_MAX     ((s8)127)
#define S8_MIN     ((s8)-128)
#define U16_MAX    ((u16)65535u)
#define S16_MAX    ((s16)32767)
#define S16_MIN    ((s16)-32768)
#define U32_MAX    ((u32)4294967295uL)
#define S32_MAX    ((s32)2147483647)
#define S32_MIN    ((s32)-2147483648)

/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

#endif /* __STM32F10x_TYPE_H */

Build started: Project: STM32_Proj *** Using Compiler 'V6.19', folder: 'D:\Keil_v5\ARM\ARMCLANG\Bin' Build target 'STM32F103ZE' ../Libraries/CMSIS/core_cm3.c(445): error: non-ASM statement in naked function is not supported uint32_t result=0; ^ ../Libraries/CMSIS/core_cm3.c(442): note: attribute is here uint32_t __get_PSP(void) __attribute__( ( naked ) ); ^ ../Libraries/CMSIS/core_cm3.c(465): error: parameter references not allowed in naked functions "BX lr \n\t" : : "r" (topOfProcStack) ); ^ ../Libraries/CMSIS/core_cm3.c(461): note: attribute is here void __set_PSP(uint32_t topOfProcStack) __attribute__( ( naked ) ); ^ ../Libraries/CMSIS/core_cm3.c(479): error: non-ASM statement in naked function is not supported uint32_t result=0; ^ ../Libraries/CMSIS/core_cm3.c(476): note: attribute is here uint32_t __get_MSP(void) __attribute__( ( naked ) ); ^ ../Libraries/CMSIS/core_cm3.c(499): error: parameter references not allowed in naked functions "BX lr \n\t" : : "r" (topOfMainStack) ); ^ ../Libraries/CMSIS/core_cm3.c(495): note: attribute is here void __set_MSP(uint32_t topOfMainStack) __attribute__( ( naked ) ); ^ ../Libraries/CMSIS/core_cm3.c(509): warning: no previous prototype for function '__get_BASEPRI' [-Wmissing-prototypes] uint32_t __get_BASEPRI(void) ^ ../Libraries/CMSIS/core_cm3.c(509): note: declare 'static' if the function is not intended to be used outside of this translation unit uint32_t __get_BASEPRI(void) ^ static ../Libraries/CMSIS/core_cm3.c(524): warning: no previous prototype for function '__set_BASEPRI' [-Wmissing-prototypes] void __set_BASEPRI(uint32_t value) ^ ../Libraries/CMSIS/core_cm3.c(524): note: declare 'static' if the function is not intended to be used outside of this translation unit void __set_BASEPRI(uint32_t value) ^ static ../Libraries/CMSIS/core_cm3.c(536): warning: no previous prototype for function '__get_PRIMASK' [-Wmissing-prototypes] uint32_t __get_PRIMASK(void) ^ ../Libraries/CMSIS/core_cm3.c(536): note: declare 'static' if the function is not intended to be used outside of this translation unit uint32_t __get_PRIMASK(void) ^ static ../Libraries/CMSIS/core_cm3.c(551): warning: no previous prototype for function '__set_PRIMASK' [-Wmissing-prototypes] void __set_PRIMASK(uint32_t priMask) ^ ../Libraries/CMSIS/core_cm3.c(551): note: declare 'static' if the function is not intended to be used outside of this translation unit void __set_PRIMASK(uint32_t priMask) ^ static ../Libraries/CMSIS/core_cm3.c(563): warning: no previous prototype for function '__get_FAULTMASK' [-Wmissing-prototypes] uint32_t __get_FAULTMASK(void) ^ ../Libraries/CMSIS/core_cm3.c(563): note: declare 'static' if the function is not intended to be used outside of this translation unit uint32_t __get_FAULTMASK(void) ^ static ../Libraries/CMSIS/core_cm3.c(578): warning: no previous prototype for function '__set_FAULTMASK' [-Wmissing-prototypes] void __set_FAULTMASK(uint32_t faultMask) ^ ../Libraries/CMSIS/core_cm3.c(578): note: declare 'static' if the function is not intended to be used outside of this translation unit void __set_FAULTMASK(uint32_t faultMask) ^ static ../Libraries/CMSIS/core_cm3.c(590): warning: no previous prototype for function '__get_CONTROL' [-Wmissing-prototypes] uint32_t __get_CONTROL(void) ^ ../Libraries/CMSIS/core_cm3.c(590): note: declare 'static' if the function is not intended to be used outside of this translation unit uint32_t __get_CONTROL(void) ^ static ../Libraries/CMSIS/core_cm3.c(605): warning: no previous prototype for function '__set_CONTROL' [-Wmissing-prototypes] void __set_CONTROL(uint32_t control) ^ ../Libraries/CMSIS/core_cm3.c(605): note: declare 'static' if the function is not intended to be used outside of this translation unit void __set_CONTROL(uint32_t control) ^ static ../Libraries/CMSIS/core_cm3.c(619): warning: no previous prototype for function '__REV' [-Wmissing-prototypes] uint32_t __REV(uint32_t value) ^ ../Libraries/CMSIS/core_cm3.c(619): note: declare 'static' if the function is not intended to be used outside of this translation unit uint32_t __REV(uint32_t value) ^ static ../Libraries/CMSIS/core_cm3.c(635): warning: no previous prototype for function '__REV16' [-Wmissing-prototypes] uint32_t __REV16(uint16_t value) ^ ../Libraries/CMSIS/core_cm3.c(635): note: declare 'static' if the function is not intended to be used outside of this translation unit uint32_t __REV16(uint16_t value) ^ static ../Libraries/CMSIS/core_cm3.c(656): warning: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'int32_t' (aka 'int') [-Wsign-conversion] return(result); ~~~~~~ ^~~~~~ ../Libraries/CMSIS/core_cm3.c(651): warning: no previous prototype for function '__REVSH' [-Wmissing-prototypes] int32_t __REVSH(int16_t value) ^ ../Libraries/CMSIS/core_cm3.c(651): note: declare 'static' if the function is not intended to be used outside of this translation unit int32_t __REVSH(int16_t value) ^ static ../Libraries/CMSIS/core_cm3.c(667): warning: no previous prototype for function '__RBIT' [-Wmissing-prototypes] uint32_t __RBIT(uint32_t value) ^ ../Libraries/CMSIS/core_cm3.c(667): note: declare 'static' if the function is not intended to be used outside of this translation unit uint32_t __RBIT(uint32_t value) ^ static ../Libraries/CMSIS/core_cm3.c(683): warning: no previous prototype for function '__LDREXB' [-Wmissing-prototypes] uint8_t __LDREXB(uint8_t *addr) ^ ../Libraries/CMSIS/core_cm3.c(683): note: declare 'static' if the function is not intended to be used outside of this translation unit uint8_t __LDREXB(uint8_t *addr) ^ static ../Libraries/CMSIS/core_cm3.c(699): warning: no previous prototype for function '__LDREXH' [-Wmissing-prototypes] uint16_t __LDREXH(uint16_t *addr) ^ ../Libraries/CMSIS/core_cm3.c(699): note: declare 'static' if the function is not intended to be used outside of this translation unit uint16_t __LDREXH(uint16_t *addr) ^ static ../Libraries/CMSIS/core_cm3.c(715): warning: no previous prototype for function '__LDREXW' [-Wmissing-prototypes] uint32_t __LDREXW(uint32_t *addr) ^ ../Libraries/CMSIS/core_cm3.c(715): note: declare 'static' if the function is not intended to be used outside of this translation unit uint32_t __LDREXW(uint32_t *addr) ^ static ../Libraries/CMSIS/core_cm3.c(732): warning: no previous prototype for function '__STREXB' [-Wmissing-prototypes] uint32_t __STREXB(uint8_t value, uint8_t *addr) ^ ../Libraries/CMSIS/core_cm3.c(732): note: declare 'static' if the function is not intended to be used outside of this translation unit uint32_t __STREXB(uint8_t value, uint8_t *addr) ^ static ../Libraries/CMSIS/core_cm3.c(749): warning: no previous prototype for function '__STREXH' [-Wmissing-prototypes] uint32_t __STREXH(uint16_t value, uint16_t *addr) ^ ../Libraries/CMSIS/core_cm3.c(749): note: declare 'static' if the function is not intended to be used outside of this translation unit uint32_t __STREXH(uint16_t value, uint16_t *addr) ^ static ../Libraries/CMSIS/core_cm3.c(766): warning: no previous prototype for function '__STREXW' [-Wmissing-prototypes] uint32_t __STREXW(uint32_t value, uint32_t *addr) ^ ../Libraries/CMSIS/core_cm3.c(766): note: declare 'static' if the function is not intended to be used outside of this translation unit uint32_t __STREXW(uint32_t value, uint32_t *addr) ^ static 19 warnings and 4 errors generated. compiling core_cm3.c... ../Libraries/CMSIS/system_stm32f10x.c(65): warning: In file included from... ../Libraries/CMSIS/stm32f10x.h(18): warning: invalid UTF-8 in comment [-Winvalid-utf8] * - To use or not the peripheral<92>s drivers in application code(i.e. ^ ../Libraries/CMSIS/stm32f10x.h(19): warning: invalid UTF-8 in comment [-Winvalid-utf8] * code will be based on direct access to peripheral<92>s registers ^ ../Libraries/CMSIS/stm32f10x.h(26): warning: invalid UTF-8 in comment [-Winvalid-utf8] * - Macros to access peripheral<92>s registers hardware ^ ../Libraries/CMSIS/system_stm32f10x.c(65): warning: In file included from... ../Libraries/CMSIS/stm32f10x.h(478): warning: In file included from... ../Libraries/CMSIS/core_cm3.h(1204): error: unknown type name 'inline' static __INLINE void __enable_irq() { __ASM volatile ("cpsie i"); } ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1204): warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static __INLINE void __enable_irq() { __ASM volatile ("cpsie i"); } ^ void ../Libraries/CMSIS/core_cm3.h(1205): error: unknown type name 'inline' static __INLINE void __disable_irq() { __ASM volatile ("cpsid i"); } ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1205): warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static __INLINE void __disable_irq() { __ASM volatile ("cpsid i"); } ^ void ../Libraries/CMSIS/core_cm3.h(1207): error: unknown type name 'inline' static __INLINE void __enable_fault_irq() { __ASM volatile ("cpsie f"); } ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1207): warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static __INLINE void __enable_fault_irq() { __ASM volatile ("cpsie f"); } ^ void ../Libraries/CMSIS/core_cm3.h(1208): error: unknown type name 'inline' static __INLINE void __disable_fault_irq() { __ASM volatile ("cpsid f"); } ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1208): warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static __INLINE void __disable_fault_irq() { __ASM volatile ("cpsid f"); } ^ void ../Libraries/CMSIS/core_cm3.h(1210): error: unknown type name 'inline' static __INLINE void __NOP() { __ASM volatile ("nop"); } ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1210): warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static __INLINE void __NOP() { __ASM volatile ("nop"); } ^ void ../Libraries/CMSIS/core_cm3.h(1211): error: unknown type name 'inline' static __INLINE void __WFI() { __ASM volatile ("wfi"); } ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1211): warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static __INLINE void __WFI() { __ASM volatile ("wfi"); } ^ void ../Libraries/CMSIS/core_cm3.h(1212): error: unknown type name 'inline' static __INLINE void __WFE() { __ASM volatile ("wfe"); } ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1212): warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static __INLINE void __WFE() { __ASM volatile ("wfe"); } ^ void ../Libraries/CMSIS/core_cm3.h(1213): error: unknown type name 'inline' static __INLINE void __SEV() { __ASM volatile ("sev"); } ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1213): warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static __INLINE void __SEV() { __ASM volatile ("sev"); } ^ void ../Libraries/CMSIS/core_cm3.h(1214): error: unknown type name 'inline' static __INLINE void __ISB() { __ASM volatile ("isb"); } ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1214): warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static __INLINE void __ISB() { __ASM volatile ("isb"); } ^ void ../Libraries/CMSIS/core_cm3.h(1215): error: unknown type name 'inline' static __INLINE void __DSB() { __ASM volatile ("dsb"); } ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1215): warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static __INLINE void __DSB() { __ASM volatile ("dsb"); } ^ void ../Libraries/CMSIS/core_cm3.h(1216): error: unknown type name 'inline' static __INLINE void __DMB() { __ASM volatile ("dmb"); } ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1216): warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static __INLINE void __DMB() { __ASM volatile ("dmb"); } ^ void ../Libraries/CMSIS/core_cm3.h(1217): error: unknown type name 'inline' static __INLINE void __CLREX() { __ASM volatile ("clrex"); } ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1217): warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static __INLINE void __CLREX() { __ASM volatile ("clrex"); } ^ void ../Libraries/CMSIS/core_cm3.h(1468): error: unknown type name 'inline' static __INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1489): error: unknown type name 'inline' static __INLINE uint32_t NVIC_GetPriorityGrouping(void) ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1489): error: expected ';' after top level declarator static __INLINE uint32_t NVIC_GetPriorityGrouping(void) ^ ; ../Libraries/CMSIS/core_cm3.h(1756): error: unknown type name 'inline' static __INLINE uint32_t ITM_SendChar (uint32_t ch) ^ ../Libraries/CMSIS/core_cm3.h(751): note: expanded from macro '__INLINE' #define __INLINE inline /*!< inline keyword for GNU Compiler */ ^ ../Libraries/CMSIS/core_cm3.h(1756): error: expected ';' after top level declarator static __INLINE uint32_t ITM_SendChar (uint32_t ch) ^ ; ../Libraries/CMSIS/system_stm32f10x.c(162): warning: no previous extern declaration for non-static variable 'SystemCoreClock' [-Wmissing-variable-declarations] uint32_t SystemCoreClock = SYSCLK_FREQ_72MHz; /*!< System Clock Frequency (Core Clock) */ ^ ../Libraries/CMSIS/system_stm32f10x.c(162): note: declare 'static' if the variable is not intended to be used outside of this translation unit uint32_t SystemCoreClock = SYSCLK_FREQ_72MHz; /*!< System Clock Frequency (Core Clock) */ ^ ../Libraries/CMSIS/system_stm32f10x.c(167): warning: no previous extern declaration for non-static variable 'AHBPrescTable' [-Wmissing-variable-declarations] __I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; ^ ../Libraries/CMSIS/system_stm32f10x.c(167): note: declare 'static' if the variable is not intended to be used outside of this translation unit __I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; ^ 17 warnings and 17 errors generated. compiling system_stm32f10x.c... ../Libraries/FWlib/src/misc.c(24): error: 'misc.h' file not found #include "misc.h" ^~~~~~~~ 1 error generated. compiling misc.c... ../Libraries/FWlib/src/stm32f10x_adc.c(23): error: 'stm32f10x_adc.h' file not found #include "stm32f10x_adc.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_adc.c... ../Libraries/FWlib/src/stm32f10x_bkp.c(23): error: 'stm32f10x_bkp.h' file not found #include "stm32f10x_bkp.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_bkp.c... ../Libraries/FWlib/src/stm32f10x_can.c(23): error: 'stm32f10x_can.h' file not found #include "stm32f10x_can.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_can.c... ../Libraries/FWlib/src/stm32f10x_crc.c(23): error: 'stm32f10x_crc.h' file not found #include "stm32f10x_crc.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_crc.c... ../Libraries/FWlib/src/stm32f10x_cec.c(23): error: 'stm32f10x_cec.h' file not found #include "stm32f10x_cec.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_cec.c... ../Libraries/FWlib/src/stm32f10x_exti.c(23): error: 'stm32f10x_exti.h' file not found #include "stm32f10x_exti.h" ^~~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_exti.c... ../Libraries/FWlib/src/stm32f10x_dma.c(23): error: 'stm32f10x_dma.h' file not found #include "stm32f10x_dma.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_dma.c... ../Libraries/FWlib/src/stm32f10x_dac.c(23): error: 'stm32f10x_dac.h' file not found #include "stm32f10x_dac.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_dac.c... ../Libraries/FWlib/src/stm32f10x_dbgmcu.c(23): error: 'stm32f10x_dbgmcu.h' file not found #include "stm32f10x_dbgmcu.h" ^~~~~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_dbgmcu.c... ../Libraries/FWlib/src/stm32f10x_flash.c(23): error: 'stm32f10x_flash.h' file not found #include "stm32f10x_flash.h" ^~~~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_flash.c... ../Libraries/FWlib/src/stm32f10x_fsmc.c(23): error: 'stm32f10x_fsmc.h' file not found #include "stm32f10x_fsmc.h" ^~~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_fsmc.c... ../Libraries/FWlib/src/stm32f10x_gpio.c(23): error: 'stm32f10x_gpio.h' file not found #include "stm32f10x_gpio.h" ^~~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_gpio.c... ../Libraries/FWlib/src/stm32f10x_i2c.c(23): error: 'stm32f10x_i2c.h' file not found #include "stm32f10x_i2c.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_i2c.c... ../Libraries/FWlib/src/stm32f10x_iwdg.c(23): error: 'stm32f10x_iwdg.h' file not found #include "stm32f10x_iwdg.h" ^~~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_iwdg.c... ../Libraries/FWlib/src/stm32f10x_pwr.c(23): error: 'stm32f10x_pwr.h' file not found #include "stm32f10x_pwr.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_pwr.c... ../Libraries/FWlib/src/stm32f10x_rcc.c(23): error: 'stm32f10x_rcc.h' file not found #include "stm32f10x_rcc.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_rcc.c... ../Libraries/FWlib/src/stm32f10x_rtc.c(23): error: 'stm32f10x_rtc.h' file not found #include "stm32f10x_rtc.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_rtc.c... ../Libraries/FWlib/src/stm32f10x_sdio.c(23): error: 'stm32f10x_sdio.h' file not found #include "stm32f10x_sdio.h" ^~~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_sdio.c... ../Libraries/FWlib/src/stm32f10x_spi.c(23): error: 'stm32f10x_spi.h' file not found #include "stm32f10x_spi.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_spi.c... ../Libraries/FWlib/src/stm32f10x_tim.c(23): error: 'stm32f10x_tim.h' file not found #include "stm32f10x_tim.h" ^~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_tim.c... ../Libraries/FWlib/src/stm32f10x_usart.c(23): error: 'stm32f10x_usart.h' file not found #include "stm32f10x_usart.h" ^~~~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_usart.c... ../Libraries/FWlib/src/stm32f10x_wwdg.c(23): error: 'stm32f10x_wwdg.h' file not found #include "stm32f10x_wwdg.h" ^~~~~~~~~~~~~~~~~~ 1 error generated. compiling stm32f10x_wwdg.c... ../Source/Main/main.c(1): warning: In file included from... D:/Keil_v5/ARM/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include\stm32f10x.h(18): warning: invalid UTF-8 in comment [-Winvalid-utf8] * - To use or not the peripheral<92>s drivers in application code(i.e. ^ D:/Keil_v5/ARM/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include\stm32f10x.h(19): warning: invalid UTF-8 in comment [-Winvalid-utf8] * code will be based on direct access to peripheral<92>s registers ^ D:/Keil_v5/ARM/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include\stm32f10x.h(26): warning: invalid UTF-8 in comment [-Winvalid-utf8] * - Macros to access peripheral<92>s registers hardware ^ D:/Keil_v5/ARM/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include\stm32f10x.h(486): error: 'core_cm3.h' file not found #include "core_cm3.h" ^~~~~~~~~~~~ 3 warnings and 1 error generated. compiling main.c... ../Source/Main/stm32f10x_it.c(25): warning: In file included from... ../Source/Main/stm32f10x_it.h(31): warning: In file included from... D:/Keil_v5/ARM/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include\stm32f10x.h(18): warning: invalid UTF-8 in comment [-Winvalid-utf8] * - To use or not the peripheral<92>s drivers in application code(i.e. ^ D:/Keil_v5/ARM/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include\stm32f10x.h(19): warning: invalid UTF-8 in comment [-Winvalid-utf8] * code will be based on direct access to peripheral<92>s registers ^ D:/Keil_v5/ARM/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include\stm32f10x.h(26): warning: invalid UTF-8 in comment [-Winvalid-utf8] * - Macros to access peripheral<92>s registers hardware ^ D:/Keil_v5/ARM/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include\stm32f10x.h(486): error: 'core_cm3.h' file not found #include "core_cm3.h" ^~~~~~~~~~~~
09-12
Rebuild started: Project: Template *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\qiancode\ARM\ARMCC\Bin' Rebuild target 'Target 1' assembling startup_stm32f10x_hd_vl.s... compiling main.c... compiling stm32f10x_it.c... User\stm32f10x.h(343): error: #67: expected a "}" ADC1_IRQn = 18, /*!< ADC1 global Interrupt */ User\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; User\stm32f10x_it.c: 1 warning, 1 error compiling stm32f10x_gpio.c... .\User\stm32f10x.h(343): error: #67: expected a "}" ADC1_IRQn = 18, /*!< ADC1 global Interrupt */ .\User\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: 1 warning, 1 error compiling core_cm3.c... compiling system_stm32f10x.c... .\User\stm32f10x.h(343): error: #67: expected a "}" ADC1_IRQn = 18, /*!< ADC1 global Interrupt */ .\User\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; Libraries\CMSIS\system_stm32f10x.c: 1 warning, 1 error compiling stm32f10x_adc.c... .\User\stm32f10x.h(343): error: #67: expected a "}" ADC1_IRQn = 18, /*!< ADC1 global Interrupt */ .\User\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c: 1 warning, 1 error compiling stm32f10x_usart.c... .\User\stm32f10x.h(343): error: #67: expected a "}" ADC1_IRQn = 18, /*!< ADC1 global Interrupt */ .\User\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error } IRQn_Type; Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c:
03-10
Rebuild started: Project: LED *** Using Compiler 'V6.24', folder: 'D:\MDR\ARM\ARMCLANG\Bin' Rebuild target 'LED' Note: source file 'RTE/Device/STM32F103VC/startup_stm32f10x_hd.s' - object file renamed from '.\Objects\startup_stm32f10x_hd.o' to '.\Objects\startup_stm32f10x_hd_1.o'. Note: source file 'RTE/Device/STM32F103VC/startup_stm32f10x_hd.s' - object file renamed from '.\Objects\startup_stm32f10x_hd.o' to '.\Objects\startup_stm32f10x_hd_1.o'. Note: source file 'RTE/Device/STM32F103VC/system_stm32f10x.c' - object file renamed from '.\Objects\system_stm32f10x.o' to '.\Objects\system_stm32f10x_1.o'. ../../Chip/CMSIS/core_cm3.c(445): error: non-ASM statement in naked function is not supported 445 | uint32_t result=0; | ^ ../../Chip/CMSIS/core_cm3.c(442): note: attribute is here 442 | uint32_t __get_PSP(void) __attribute__( ( naked ) ); | ^ ../../Chip/CMSIS/core_cm3.c(465): error: parameter references not allowed in naked functions 465 | "BX lr \n\t" : : "r" (topOfProcStack) ); | ^ ../../Chip/CMSIS/core_cm3.c(461): note: attribute is here 461 | void __set_PSP(uint32_t topOfProcStack) __attribute__( ( naked ) ); | ^ ../../Chip/CMSIS/core_cm3.c(479): error: non-ASM statement in naked function is not supported 479 | uint32_t result=0; | ^ ../../Chip/CMSIS/core_cm3.c(476): note: attribute is here 476 | uint32_t __get_MSP(void) __attribute__( ( naked ) ); | ^ ../../Chip/CMSIS/core_cm3.c(499): error: parameter references not allowed in naked functions 499 | "BX lr \n\t" : : "r" (topOfMainStack) ); | ^ ../../Chip/CMSIS/core_cm3.c(495): note: attribute is here 495 | void __set_MSP(uint32_t topOfMainStack) __attribute__( ( naked ) ); | ^ 4 errors generated. compiling core_cm3.c... ../../App/stm32f10x_it.c(25): warning: In file included from... ../../App\stm32f10x_it.h(31): warning: In file included from... ../../Chip/CMSIS\stm32f10x.h(478): warning: In file included from... ../../Chip/CMSIS\core_cm3.h(1204): error: unknown type name 'inline'
最新发布
11-25
评论 2
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值