|
openMMC
Open Source Modular MMC for AMCs
|
CMSIS compiler armclang (Arm Compiler 6) header file. More...
#include <arm_compat.h>
Go to the source code of this file.
Macros | |
| #define | __ASM __asm |
| #define | __INLINE __inline |
| #define | __STATIC_INLINE static __inline |
| #define | __STATIC_FORCEINLINE __attribute__((always_inline)) static __inline |
| #define | __NO_RETURN __attribute__((__noreturn__)) |
| #define | __USED __attribute__((used)) |
| #define | __WEAK __attribute__((weak)) |
| #define | __PACKED __attribute__((packed, aligned(1))) |
| #define | __PACKED_STRUCT struct __attribute__((packed, aligned(1))) |
| #define | __PACKED_UNION union __attribute__((packed, aligned(1))) |
| #define | __UNALIGNED_UINT32(x) |
| #define | __UNALIGNED_UINT16_WRITE(addr, val) |
| #define | __UNALIGNED_UINT16_READ(addr) |
| #define | __UNALIGNED_UINT32_WRITE(addr, val) |
| #define | __UNALIGNED_UINT32_READ(addr) |
| #define | __ALIGNED(x) |
| #define | __RESTRICT __restrict |
| #define | __COMPILER_BARRIER() |
| #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 | __get_FPSCR() |
| Get FPSCR. | |
| #define | __set_FPSCR(x) |
| Set FPSCR. | |
| #define | __CMSIS_GCC_OUT_REG(r) |
| #define | __CMSIS_GCC_USE_REG(r) |
| #define | __NOP __builtin_arm_nop |
| No Operation. | |
| #define | __WFI __builtin_arm_wfi |
| Wait For Interrupt. | |
| #define | __WFE __builtin_arm_wfe |
| Wait For Event. | |
| #define | __SEV __builtin_arm_sev |
| Send Event. | |
| #define | __ISB() |
| Instruction Synchronization Barrier. | |
| #define | __DSB() |
| Data Synchronization Barrier. | |
| #define | __DMB() |
| Data Memory Barrier. | |
| #define | __REV(value) |
| Reverse byte order (32 bit) | |
| #define | __REV16(value) |
| Reverse byte order (16 bit) | |
| #define | __REVSH(value) |
| Reverse byte order (16 bit) | |
| #define | __BKPT(value) |
| Breakpoint. | |
| #define | __RBIT __builtin_arm_rbit |
| Reverse bit order of value. | |
Functions | |
| struct | __attribute__ ((packed)) T_UINT32 |
| __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_FORCEINLINE uint32_t | __ROR (uint32_t op1, uint32_t op2) |
| Rotate Right in unsigned value (32 bit) | |
| __STATIC_FORCEINLINE uint8_t | __CLZ (uint32_t value) |
| Count leading zeros. | |
| __STATIC_FORCEINLINE int32_t | __SSAT (int32_t val, uint32_t sat) |
| Signed Saturate. | |
| __STATIC_FORCEINLINE uint32_t | __USAT (int32_t val, uint32_t sat) |
| Unsigned Saturate. | |
Variables | |
| __PACKED_STRUCT | T_UINT16_WRITE { uint16_t v |
| __PACKED_STRUCT | T_UINT16_READ { uint16_t v |
| __PACKED_STRUCT | T_UINT32_WRITE { uint32_t v |
| __PACKED_STRUCT | T_UINT32_READ { uint32_t v |
CMSIS compiler armclang (Arm Compiler 6) header file.
| #define __ALIGNED | ( | x | ) |
| #define __ASM __asm |
| #define __COMPILER_BARRIER | ( | ) |
| #define __INITIAL_SP Image$$ARM_LIB_STACK$$ZI$$Limit |
| #define __INLINE __inline |
| #define __NO_RETURN __attribute__((__noreturn__)) |
| #define __PACKED __attribute__((packed, aligned(1))) |
| #define __PACKED_STRUCT struct __attribute__((packed, aligned(1))) |
| #define __PACKED_UNION union __attribute__((packed, aligned(1))) |
| #define __PROGRAM_START __main |
| #define __RESTRICT __restrict |
| #define __STACK_LIMIT Image$$ARM_LIB_STACK$$ZI$$Base |
| #define __STATIC_FORCEINLINE __attribute__((always_inline)) static __inline |
| #define __STATIC_INLINE static __inline |
| #define __UNALIGNED_UINT16_READ | ( | addr | ) |
| #define __UNALIGNED_UINT16_WRITE | ( | addr, | |
| val ) |
| #define __UNALIGNED_UINT32 | ( | x | ) |
| #define __UNALIGNED_UINT32_READ | ( | addr | ) |
| #define __UNALIGNED_UINT32_WRITE | ( | addr, | |
| val ) |
| #define __USED __attribute__((used)) |
| #define __VECTOR_TABLE __Vectors |
| #define __VECTOR_TABLE_ATTRIBUTE __attribute((used, section("RESET"))) |
| #define __WEAK __attribute__((weak)) |
| struct __attribute__ | ( | (packed) | ) |
| __PACKED_STRUCT T_UINT16_READ { uint16_t v |
| __PACKED_STRUCT T_UINT16_WRITE { uint16_t v |
| __PACKED_STRUCT T_UINT32_READ { uint32_t v |
| __PACKED_STRUCT T_UINT32_WRITE { uint32_t v |