sarmfsw: SMFSW Toolbox (desinged for ARM / compatible with other 8b/16b/32b platforms) 4.0rc
SMFSW collection of miscellaneous functions \& macros (desinged for ARM / compatible with other 8b/16b/32b platforms)
Loading...
Searching...
No Matches
arm_keywords.h File Reference

Common keywords aliases. More...

This graph shows which files directly or indirectly include this file:

Macros

#define __RESTRICT
 restrict keyword alias
 
#define __STATIC   static
 static alias when functions visibility may be required (__INLINE remaining static)
 
#define __INLINE   static inline
 inline attribute alias
 
#define __TYPEOF   __typeof__
 typeof keyword alias (
 
#define __ASM   __asm__
 asm keyword alias (
 

Detailed Description

Common keywords aliases.

Author
SMFSW
MISRA C:2012 Deviations

Header scope deviation has been granted for following rules:
Rule-20.5 - Advisory: #undef (misra-c2012-20.5)

Header scope derogation to following rules:
Rule-21.1 - Required: #define and #undef on reserved identifiers (misra-c2012-21.1)
Justification: define generic CMSIS IO macros and keywords aliases in case not already defined.

Macro Definition Documentation

◆ __ASM

#define __ASM   __asm__

asm keyword alias (

Note
so that it may prior be set to other expansion following compiler)

◆ __INLINE

#define __INLINE   static inline

inline attribute alias

Note
Doesn't optimize code size much (when generated as functions) as code will be static to each file and hidden from others (leading to code duplicates)

◆ __RESTRICT

#define __RESTRICT

restrict keyword alias

◆ __STATIC

#define __STATIC   static

static alias when functions visibility may be required (__INLINE remaining static)

◆ __TYPEOF

#define __TYPEOF   __typeof__

typeof keyword alias (

Note
so that it may prior be set to other expansion following compiler)