This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32 core_cm4.h error

Hello, i am new on programming STM32 devices. I am using STM32f407vg board. I tried to write my first code and i got error that i uploaded. There are my code and error in txt file. How can i fix it? Thanks.

Build started: Project: ins
*** Using Compiler 'V6.18', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Build target 'Target 1'
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/misc.c(76): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\misc.h(38): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(50): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE void __enable_irq(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/misc.c(76): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\misc.h(38): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(61): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE void __disable_irq(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/misc.c(76): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\misc.h(38): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(73): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/misc.c(76): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\misc.h(38): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(73): error: expected ';' after top level declarator
__attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)
                                                       ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/misc.c(76): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\misc.h(38): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1567): error: unknown type name 'inline'
__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1587): error: unknown type name 'inline'
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1587): error: expected ';' after top level declarator
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
                        ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1863): error: unknown type name 'inline'
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1863): error: expected ';' after top level declarator
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
                        ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/misc.c(76): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\misc.h(38): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1436): warning: '#pragma anon_unions' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-anon-unions]
#pragma anon_unions
        ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1450): warning: anonymous unions are a C11 extension [-Wc11-extensions]
  union {
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1820): warning: anonymous unions are a C11 extension [-Wc11-extensions]
  union {
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(2232): warning: '#pragma no_anon_unions' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-anon-unions]
#pragma no_anon_unions
        ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/misc.c(152): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
    tmppriority = NVIC_InitStruct->NVIC_IRQChannelPreemptionPriority << tmppre;
                ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/misc.c(155): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
    tmppriority = tmppriority << 0x04;
                ~ ~~~~~~~~~~~~^~~~~~~
6 warnings and 9 errors generated.
compiling misc.c...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(15): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(50): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE void __enable_irq(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(15): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(61): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE void __disable_irq(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(15): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(73): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(15): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(73): error: expected ';' after top level declarator
__attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)
                                                       ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(15): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1567): error: unknown type name 'inline'
__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1587): error: unknown type name 'inline'
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1587): error: expected ';' after top level declarator
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
                        ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1863): error: unknown type name 'inline'
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1863): error: expected ';' after top level declarator
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
                        ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(15): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1436): warning: '#pragma anon_unions' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-anon-unions]
#pragma anon_unions
        ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1450): warning: anonymous unions are a C11 extension [-Wc11-extensions]
  union {
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1820): warning: anonymous unions are a C11 extension [-Wc11-extensions]
  union {
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(2232): warning: '#pragma no_anon_unions' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-anon-unions]
#pragma no_anon_unions
        ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(25): warning: // comments are not allowed in this language [-Wcomment]
/// GPIO Mode
^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(57): error: expected identifier
  GPIO_AF_TIM1                  = 1,
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(254): note: expanded from macro 'GPIO_AF_TIM1'
#define GPIO_AF_TIM1          ((uint8_t)0x01)  /* TIM1 Alternate Function mapping */
                              ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(58): error: expected identifier
  GPIO_AF_TIM2                  = 1,
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(255): note: expanded from macro 'GPIO_AF_TIM2'
#define GPIO_AF_TIM2          ((uint8_t)0x01)  /* TIM2 Alternate Function mapping */
                              ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(59): error: expected identifier
  GPIO_AF_TIM3                  = 2,
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(260): note: expanded from macro 'GPIO_AF_TIM3'
#define GPIO_AF_TIM3          ((uint8_t)0x02)  /* TIM3 Alternate Function mapping */
                              ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(60): error: expected identifier
  GPIO_AF_TIM4                  = 2,
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(261): note: expanded from macro 'GPIO_AF_TIM4'
#define GPIO_AF_TIM4          ((uint8_t)0x02)  /* TIM4 Alternate Function mapping */
                              ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(61): error: expected identifier
  GPIO_AF_TIM5                  = 2,
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(262): note: expanded from macro 'GPIO_AF_TIM5'
#define GPIO_AF_TIM5          ((uint8_t)0x02)  /* TIM5 Alternate Function mapping */
                              ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(62): error: expected identifier
  GPIO_AF_TIM8                  = 3,
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(267): note: expanded from macro 'GPIO_AF_TIM8'
#define GPIO_AF_TIM8          ((uint8_t)0x03)  /* TIM8 Alternate Function mapping */
                              ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(63): error: expected identifier
  GPIO_AF_TIM9                  = 3,
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(268): note: expanded from macro 'GPIO_AF_TIM9'
#define GPIO_AF_TIM9          ((uint8_t)0x03)  /* TIM9 Alternate Function mapping */
                              ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(64): error: expected identifier
  GPIO_AF_TIM10                 = 3,
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(269): note: expanded from macro 'GPIO_AF_TIM10'
#define GPIO_AF_TIM10         ((uint8_t)0x03)  /* TIM10 Alternate Function mapping */
                              ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(65): error: expected identifier
  GPIO_AF_TIM11                 = 3,
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(270): note: expanded from macro 'GPIO_AF_TIM11'
#define GPIO_AF_TIM11         ((uint8_t)0x03)  /* TIM11 Alternate Function mapping */
                              ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.c(10): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/RTE_Driver/GPIO_STM32F4xx.h(66): error: expected identifier
  GPIO_AF_I2C1                  = 4,
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(275): note: expanded from macro 'GPIO_AF_I2C1'
#define GPIO_AF_I2C1          ((uint8_t)0x04)  /* I2C1 Alternate Function mapping */
                              ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
5 warnings and 20 errors generated.
compiling GPIO_STM32F4xx.c...
mainn.c(1): warning: // comments are not allowed in this language [-Wcomment]
#include "stm32f4xx.h"                  // Device header
                                        ^
mainn.c(1): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(50): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE void __enable_irq(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
mainn.c(1): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(61): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE void __disable_irq(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
mainn.c(1): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(73): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
mainn.c(1): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(73): error: expected ';' after top level declarator
__attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)
                                                       ^
mainn.c(1): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1567): error: unknown type name 'inline'
__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1587): error: unknown type name 'inline'
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1587): error: expected ';' after top level declarator
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
                        ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1863): error: unknown type name 'inline'
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1863): error: expected ';' after top level declarator
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
                        ^
mainn.c(1): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1436): warning: '#pragma anon_unions' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-anon-unions]
#pragma anon_unions
        ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1450): warning: anonymous unions are a C11 extension [-Wc11-extensions]
  union {
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1820): warning: anonymous unions are a C11 extension [-Wc11-extensions]
  union {
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(2232): warning: '#pragma no_anon_unions' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-anon-unions]
#pragma no_anon_unions
        ^
5 warnings and 9 errors generated.
compiling mainn.c...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/stm32f4xx_gpio.c(84): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(38): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(50): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE void __enable_irq(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/stm32f4xx_gpio.c(84): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(38): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(61): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE void __disable_irq(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/stm32f4xx_gpio.c(84): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(38): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(73): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/stm32f4xx_gpio.c(84): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(38): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(73): error: expected ';' after top level declarator
__attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)
                                                       ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/stm32f4xx_gpio.c(84): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(38): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1567): error: unknown type name 'inline'
__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1587): error: unknown type name 'inline'
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1587): error: expected ';' after top level declarator
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
                        ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1863): error: unknown type name 'inline'
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1863): error: expected ';' after top level declarator
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
                        ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/stm32f4xx_gpio.c(84): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_gpio.h(38): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1436): warning: '#pragma anon_unions' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-anon-unions]
#pragma anon_unions
        ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1450): warning: anonymous unions are a C11 extension [-Wc11-extensions]
  union {
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1820): warning: anonymous unions are a C11 extension [-Wc11-extensions]
  union {
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(2232): warning: '#pragma no_anon_unions' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-anon-unions]
#pragma no_anon_unions
        ^
4 warnings and 9 errors generated.
compiling stm32f4xx_gpio.c...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/stm32f4xx_rcc.c(59): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_rcc.h(37): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(50): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE void __enable_irq(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/stm32f4xx_rcc.c(59): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_rcc.h(37): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(61): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE void __disable_irq(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/stm32f4xx_rcc.c(59): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_rcc.h(37): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(73): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/stm32f4xx_rcc.c(59): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_rcc.h(37): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(73): error: expected ';' after top level declarator
__attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)
                                                       ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/stm32f4xx_rcc.c(59): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_rcc.h(37): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1567): error: unknown type name 'inline'
__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1587): error: unknown type name 'inline'
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1587): error: expected ';' after top level declarator
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
                        ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1863): error: unknown type name 'inline'
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1863): error: expected ';' after top level declarator
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
                        ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/src/stm32f4xx_rcc.c(59): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/StdPeriph_Driver/inc\stm32f4xx_rcc.h(37): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1436): warning: '#pragma anon_unions' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-anon-unions]
#pragma anon_unions
        ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1450): warning: anonymous unions are a C11 extension [-Wc11-extensions]
  union {
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1820): warning: anonymous unions are a C11 extension [-Wc11-extensions]
  union {
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(2232): warning: '#pragma no_anon_unions' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-anon-unions]
#pragma no_anon_unions
        ^
4 warnings and 9 errors generated.
compiling stm32f4xx_rcc.c...
RTE/Device/STM32F407VG/system_stm32f4xx.c(215): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(50): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE void __enable_irq(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
RTE/Device/STM32F407VG/system_stm32f4xx.c(215): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(61): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE void __disable_irq(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
RTE/Device/STM32F407VG/system_stm32f4xx.c(215): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(73): error: unknown type name 'inline'
__attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)
                               ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
RTE/Device/STM32F407VG/system_stm32f4xx.c(215): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(208): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include/core_cmInstr.h(55): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\cmsis_armcc_V6.h(73): error: expected ';' after top level declarator
__attribute__((always_inline)) __STATIC_INLINE uint32_t __get_CONTROL(void)
                                                       ^
RTE/Device/STM32F407VG/system_stm32f4xx.c(215): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(468): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1567): error: unknown type name 'inline'
__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1587): error: unknown type name 'inline'
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1587): error: expected ';' after top level declarator
__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
                        ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1863): error: unknown type name 'inline'
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(88): note: expanded from macro '__STATIC_INLINE'
  #define __STATIC_INLINE  static inline
                                  ^
C:/Users/csara/AppData/Local/Arm/Packs/ARM/CMSIS/4.4.0/CMSIS/Include\core_cm4.h(1863): error: expected ';' after top level declarator
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
                        ^
RTE/Device/STM32F407VG/system_stm32f4xx.c(215): warning: In file included from...
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1436): warning: '#pragma anon_unions' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-anon-unions]
#pragma anon_unions
        ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1450): warning: anonymous unions are a C11 extension [-Wc11-extensions]
  union {
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(1820): warning: anonymous unions are a C11 extension [-Wc11-extensions]
  union {
  ^
C:/Users/csara/AppData/Local/Arm/Packs/Keil/STM32F4xx_DFP/1.0.8/Device/Include\stm32f4xx.h(2232): warning: '#pragma no_anon_unions' is an Arm Compiler 5 extension, and is not supported by Arm Compiler for Embedded 6 [-Warmcc-pragma-anon-unions]
#pragma no_anon_unions
        ^
RTE/Device/STM32F407VG/system_stm32f4xx.c(295): warning: no previous extern declaration for non-static variable 'SystemCoreClock' [-Wmissing-variable-declarations]
  uint32_t SystemCoreClock = 168000000;
           ^
RTE/Device/STM32F407VG/system_stm32f4xx.c(295): note: declare 'static' if the variable is not intended to be used outside of this translation unit
  uint32_t SystemCoreClock = 168000000;
  ^
RTE/Device/STM32F407VG/system_stm32f4xx.c(306): 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};
              ^
RTE/Device/STM32F407VG/system_stm32f4xx.c(306): 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};
      ^
RTE/Device/STM32F407VG/system_stm32f4xx.c(562): warning: while loop has empty body [-Wempty-body]
    while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL);
                                                                     ^
RTE/Device/STM32F407VG/system_stm32f4xx.c(562): note: put the semicolon on a separate line to silence this warning
7 warnings and 9 errors generated.
compiling system_stm32f4xx.c...
".\Objects\ins.axf" - 64 Error(s), 31 Warning(s).
Target not created.
Build Time Elapsed:  00:00:03

Parents Reply Children
No data