openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
cmsis_armcc.h File Reference

CMSIS compiler ARMCC (Arm Compiler 5) header file. More...

Go to the source code of this file.

Macros

#define __ASM   __asm
 
#define __INLINE   __inline
 
#define __STATIC_INLINE   static __inline
 
#define __STATIC_FORCEINLINE   static __forceinline
 
#define __NO_RETURN   __declspec(noreturn)
 
#define __USED   __attribute__((used))
 
#define __WEAK   __attribute__((weak))
 
#define __PACKED   __attribute__((packed))
 
#define __PACKED_STRUCT   __packed struct
 
#define __PACKED_UNION   __packed union
 
#define __UNALIGNED_UINT32(x)   (*((__packed uint32_t *)(x)))
 
#define __UNALIGNED_UINT16_WRITE(addr, val)   ((*((__packed uint16_t *)(addr))) = (val))
 
#define __UNALIGNED_UINT16_READ(addr)   (*((const __packed uint16_t *)(addr)))
 
#define __UNALIGNED_UINT32_WRITE(addr, val)   ((*((__packed uint32_t *)(addr))) = (val))
 
#define __UNALIGNED_UINT32_READ(addr)   (*((const __packed uint32_t *)(addr)))
 
#define __ALIGNED(x)   __attribute__((aligned(x)))
 
#define __RESTRICT   __restrict
 
#define __COMPILER_BARRIER()   __memory_changed()
 
#define __PROGRAM_START   __main
 
#define __INITIAL_SP   Image$$ARM_LIB_STACK$$ZI$$Limit
 
#define __STACK_LIMIT   Image$$ARM_LIB_STACK$$ZI$$Base
 
#define __VECTOR_TABLE   __Vectors
 
#define __VECTOR_TABLE_ATTRIBUTE   __attribute((used, section("RESET")))
 
#define __NOP   __nop
 No Operation.
 
#define __WFI   __wfi
 Wait For Interrupt.
 
#define __WFE   __wfe
 Wait For Event.
 
#define __SEV   __sev
 Send Event.
 
#define __ISB()   __isb(0xF)
 Instruction Synchronization Barrier.
 
#define __DSB()   __dsb(0xF)
 Data Synchronization Barrier.
 
#define __DMB()   __dmb(0xF)
 Data Memory Barrier.
 
#define __REV   __rev
 Reverse byte order (32 bit)
 
#define __ROR   __ror
 Rotate Right in unsigned value (32 bit)
 
#define __BKPT(value)   __breakpoint(value)
 Breakpoint.
 
#define __CLZ   __clz
 Count leading zeros.
 

Functions

__STATIC_INLINE uint32_t __get_CONTROL (void)
 Enable IRQ Interrupts.
 
__STATIC_INLINE void __set_CONTROL (uint32_t control)
 Set Control Register.
 
__STATIC_INLINE uint32_t __get_IPSR (void)
 Get IPSR Register.
 
__STATIC_INLINE uint32_t __get_APSR (void)
 Get APSR Register.
 
__STATIC_INLINE uint32_t __get_xPSR (void)
 Get xPSR Register.
 
__STATIC_INLINE uint32_t __get_PSP (void)
 Get Process Stack Pointer.
 
__STATIC_INLINE void __set_PSP (uint32_t topOfProcStack)
 Set Process Stack Pointer.
 
__STATIC_INLINE uint32_t __get_MSP (void)
 Get Main Stack Pointer.
 
__STATIC_INLINE void __set_MSP (uint32_t topOfMainStack)
 Set Main Stack Pointer.
 
__STATIC_INLINE uint32_t __get_PRIMASK (void)
 Get Priority Mask.
 
__STATIC_INLINE void __set_PRIMASK (uint32_t priMask)
 Set Priority Mask.
 
__STATIC_INLINE uint32_t __get_FPSCR (void)
 Get FPSCR.
 
__STATIC_INLINE void __set_FPSCR (uint32_t fpscr)
 Set FPSCR.
 
 __attribute__ ((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
 Reverse byte order (16 bit)
 
 __attribute__ ((section(".revsh_text"))) __STATIC_INLINE __ASM int16_t __REVSH(int16_t value)
 Reverse byte order (16 bit)
 
 __attribute__ ((always_inline)) __STATIC_INLINE uint32_t __RBIT(uint32_t value)
 Reverse bit order of value.
 

Variables

uint32_t sat
 

Detailed Description

CMSIS compiler ARMCC (Arm Compiler 5) header file.

Version
V5.2.0
Date
28. January 2020

Macro Definition Documentation

◆ __ALIGNED

#define __ALIGNED ( x)    __attribute__((aligned(x)))

◆ __ASM

#define __ASM   __asm

◆ __COMPILER_BARRIER

#define __COMPILER_BARRIER ( )    __memory_changed()

◆ __INITIAL_SP

#define __INITIAL_SP   Image$$ARM_LIB_STACK$$ZI$$Limit

◆ __INLINE

#define __INLINE   __inline

◆ __NO_RETURN

#define __NO_RETURN   __declspec(noreturn)

◆ __PACKED

#define __PACKED   __attribute__((packed))

◆ __PACKED_STRUCT

#define __PACKED_STRUCT   __packed struct

◆ __PACKED_UNION

#define __PACKED_UNION   __packed union

◆ __PROGRAM_START

#define __PROGRAM_START   __main

◆ __RESTRICT

#define __RESTRICT   __restrict

◆ __STACK_LIMIT

#define __STACK_LIMIT   Image$$ARM_LIB_STACK$$ZI$$Base

◆ __STATIC_FORCEINLINE

#define __STATIC_FORCEINLINE   static __forceinline

◆ __STATIC_INLINE

#define __STATIC_INLINE   static __inline

◆ __UNALIGNED_UINT16_READ

#define __UNALIGNED_UINT16_READ ( addr)    (*((const __packed uint16_t *)(addr)))

◆ __UNALIGNED_UINT16_WRITE

#define __UNALIGNED_UINT16_WRITE ( addr,
val )   ((*((__packed uint16_t *)(addr))) = (val))

◆ __UNALIGNED_UINT32

#define __UNALIGNED_UINT32 ( x)    (*((__packed uint32_t *)(x)))

◆ __UNALIGNED_UINT32_READ

#define __UNALIGNED_UINT32_READ ( addr)    (*((const __packed uint32_t *)(addr)))

◆ __UNALIGNED_UINT32_WRITE

#define __UNALIGNED_UINT32_WRITE ( addr,
val )   ((*((__packed uint32_t *)(addr))) = (val))

◆ __USED

#define __USED   __attribute__((used))

◆ __VECTOR_TABLE

#define __VECTOR_TABLE   __Vectors

◆ __VECTOR_TABLE_ATTRIBUTE

#define __VECTOR_TABLE_ATTRIBUTE   __attribute((used, section("RESET")))

◆ __WEAK

#define __WEAK   __attribute__((weak))