ARM-software / CMSIS_6

CMSIS version 6 (successor of CMSIS_5)
https://arm-software.github.io/CMSIS_6/
Apache License 2.0
170 stars 56 forks source link

inline compilation error with cmsis_armclang.h and C90 language #175

Open DGA45 opened 3 months ago

DGA45 commented 3 months ago

In the latest cmsis_armclang.h, we have:

define __INLINE inline

However, "inline" is a valid keyword only from C99 language. For C90, ARM compiler v6 recognizes only inline or inline__ keywords.

Additional remark: the @date of the file is "27. July 2024" while it was committed in February 2024

ReinhardKeil commented 3 months ago

Note: CMSIS is written for C99 and higher (it never supported C90) - see here https://arm-software.github.io/CMSIS_6/latest/General/index.html#coding_rules.

Thanks for pointing out the problem with the @Date