YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
cmsis_armclang_ltm.h File Reference

CMSIS compiler armclang (Arm Compiler 6) 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   __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 __NO_INIT   __attribute__ ((section (".bss.noinit")))
 
#define __ALIAS(x)
 
#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 __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.
 
#define __get_FPSCR()
 Get FPSCR.
 
#define __set_FPSCR(x)
 Set FPSCR.
 

Functions

struct __attribute__ ((packed)) T_UINT32
 
__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.
 
__STATIC_FORCEINLINE void __enable_irq (void)
 Enable IRQ Interrupts.
 
__STATIC_FORCEINLINE void __disable_irq (void)
 Disable IRQ Interrupts.
 
__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.
 

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
 

Detailed Description

CMSIS compiler armclang (Arm Compiler 6) header file.

Version
V1.6.0
Date
20. January 2023

Definition in file cmsis_armclang_ltm.h.

Macro Definition Documentation

◆ __ALIAS

#define __ALIAS ( x)
Value:
__attribute__ ((alias(x)))
void __attribute__((noreturn))(*rom_reset_usb_boot_fn)(uint32_t
Reboot the device into BOOTSEL mode.
Definition bootrom.h:66

Definition at line 116 of file cmsis_armclang_ltm.h.

◆ __ALIGNED

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

Definition at line 104 of file cmsis_armclang_ltm.h.

◆ __ASM

#define __ASM   __asm

Definition at line 34 of file cmsis_armclang_ltm.h.

◆ __COMPILER_BARRIER

#define __COMPILER_BARRIER ( )
Value:
__ASM volatile("":::"memory")

Definition at line 110 of file cmsis_armclang_ltm.h.

◆ __INITIAL_SP

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

Definition at line 126 of file cmsis_armclang_ltm.h.

◆ __INLINE

#define __INLINE   __inline

Definition at line 37 of file cmsis_armclang_ltm.h.

◆ __NO_INIT

#define __NO_INIT   __attribute__ ((section (".bss.noinit")))

Definition at line 113 of file cmsis_armclang_ltm.h.

◆ __NO_RETURN

#define __NO_RETURN   __attribute__((__noreturn__))

Definition at line 46 of file cmsis_armclang_ltm.h.

◆ __PACKED

#define __PACKED   __attribute__((packed, aligned(1)))

Definition at line 55 of file cmsis_armclang_ltm.h.

◆ __PACKED_STRUCT

#define __PACKED_STRUCT   struct __attribute__((packed, aligned(1)))

Definition at line 58 of file cmsis_armclang_ltm.h.

◆ __PACKED_UNION

#define __PACKED_UNION   union __attribute__((packed, aligned(1)))

Definition at line 61 of file cmsis_armclang_ltm.h.

◆ __PROGRAM_START

#define __PROGRAM_START   __main

Definition at line 122 of file cmsis_armclang_ltm.h.

◆ __RESTRICT

#define __RESTRICT   __restrict

Definition at line 107 of file cmsis_armclang_ltm.h.

◆ __STACK_LIMIT

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

Definition at line 130 of file cmsis_armclang_ltm.h.

◆ __STATIC_FORCEINLINE

#define __STATIC_FORCEINLINE   __attribute__((always_inline)) static __inline

Definition at line 43 of file cmsis_armclang_ltm.h.

◆ __STATIC_INLINE

#define __STATIC_INLINE   static __inline

Definition at line 40 of file cmsis_armclang_ltm.h.

◆ __UNALIGNED_UINT16_READ

#define __UNALIGNED_UINT16_READ ( addr)
Value:
(((const struct T_UINT16_READ *)(const void *)(addr))->v)

Definition at line 85 of file cmsis_armclang_ltm.h.

◆ __UNALIGNED_UINT16_WRITE

#define __UNALIGNED_UINT16_WRITE ( addr,
val )
Value:
(void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val))

Definition at line 77 of file cmsis_armclang_ltm.h.

◆ __UNALIGNED_UINT32

#define __UNALIGNED_UINT32 ( x)
Value:
(((struct T_UINT32 *)(x))->v)

Definition at line 69 of file cmsis_armclang_ltm.h.

◆ __UNALIGNED_UINT32_READ

#define __UNALIGNED_UINT32_READ ( addr)
Value:
(((const struct T_UINT32_READ *)(const void *)(addr))->v)

Definition at line 101 of file cmsis_armclang_ltm.h.

◆ __UNALIGNED_UINT32_WRITE

#define __UNALIGNED_UINT32_WRITE ( addr,
val )
Value:
(void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val))

Definition at line 93 of file cmsis_armclang_ltm.h.

◆ __USED

#define __USED   __attribute__((used))

Definition at line 49 of file cmsis_armclang_ltm.h.

◆ __VECTOR_TABLE

#define __VECTOR_TABLE   __Vectors

Definition at line 134 of file cmsis_armclang_ltm.h.

◆ __VECTOR_TABLE_ATTRIBUTE

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

Definition at line 138 of file cmsis_armclang_ltm.h.

◆ __WEAK

#define __WEAK   __attribute__((weak))

Definition at line 52 of file cmsis_armclang_ltm.h.

Function Documentation

◆ __attribute__()

struct __attribute__ ( (packed) )

Definition at line 1 of file cmsis_armclang_ltm.h.

Variable Documentation

◆ T_UINT16_READ

__PACKED_STRUCT T_UINT16_READ { uint16_t v

Definition at line 83 of file cmsis_armclang_ltm.h.

◆ T_UINT16_WRITE

__PACKED_STRUCT T_UINT16_WRITE { uint16_t v

Definition at line 75 of file cmsis_armclang_ltm.h.

◆ T_UINT32_READ

__PACKED_STRUCT T_UINT32_READ { uint32_t v

Definition at line 99 of file cmsis_armclang_ltm.h.

◆ T_UINT32_WRITE

__PACKED_STRUCT T_UINT32_WRITE { uint32_t v

Definition at line 91 of file cmsis_armclang_ltm.h.