keil MDK报错显示error: #20: identifier “inline“ is undefined

用 keil MDK 编译STM32代码,报错为:

..\LCD\atk_md0430.c(72): error:  #20: identifier "inline" is undefined
  static inline uint16_t atk_md0430_get_chip_id(void)

之所以产生这样的原因,是因为MDK的inline函数和stm32的不一样,在MDK中,应该是__inline,修改后编译正确:

keil MDK报错显示error: #20: identifier “inline“ is undefined_第1张图片

你可能感兴趣的:(单片机,stm32,嵌入式硬件,keil,MDK,inline)