SmartSnippets DA1459x SDK
Macros | Functions
cmsis_gcc.h File Reference

CMSIS compiler GCC header file. More...

Go to the source code of this file.

Macros

#define __PACKED_STRUCT   struct __attribute__((packed, aligned(1)))
 
#define __NOP()   __ASM volatile ("nop")
 No Operation. More...
 
#define __WFI()   __ASM volatile ("wfi":::"memory")
 Wait For Interrupt. More...
 
#define __WFE()   __ASM volatile ("wfe":::"memory")
 Wait For Event. More...
 
#define __SEV()   __ASM volatile ("sev")
 Send Event. More...
 
#define __BKPT(value)   __ASM volatile ("bkpt "#value)
 Breakpoint. More...
 

Functions

__STATIC_FORCEINLINE void __ISB (void)
 Instruction Synchronization Barrier. More...
 
__STATIC_FORCEINLINE void __enable_irq (void)
 Enable IRQ Interrupts. More...
 
__STATIC_FORCEINLINE void __disable_irq (void)
 Disable IRQ Interrupts. More...
 
__STATIC_FORCEINLINE uint32_t __get_CONTROL (void)
 Get Control Register. More...
 
__STATIC_FORCEINLINE void __set_CONTROL (uint32_t control)
 Set Control Register. More...
 
__STATIC_FORCEINLINE uint32_t __get_IPSR (void)
 Get IPSR Register. More...
 
__STATIC_FORCEINLINE uint32_t __get_APSR (void)
 Get APSR Register. More...
 
__STATIC_FORCEINLINE uint32_t __get_xPSR (void)
 Get xPSR Register. More...
 
__STATIC_FORCEINLINE uint32_t __get_PSP (void)
 Get Process Stack Pointer. More...
 
__STATIC_FORCEINLINE void __set_PSP (uint32_t topOfProcStack)
 Set Process Stack Pointer. More...
 
__STATIC_FORCEINLINE uint32_t __get_MSP (void)
 Get Main Stack Pointer. More...
 
__STATIC_FORCEINLINE void __set_MSP (uint32_t topOfMainStack)
 Set Main Stack Pointer. More...
 
__STATIC_FORCEINLINE uint32_t __get_PRIMASK (void)
 Get Priority Mask. More...
 
__STATIC_FORCEINLINE void __set_PRIMASK (uint32_t priMask)
 Set Priority Mask. More...
 
__STATIC_FORCEINLINE uint32_t __get_FPSCR (void)
 Get FPSCR. More...
 
__STATIC_FORCEINLINE void __set_FPSCR (uint32_t fpscr)
 Set FPSCR. More...
 
__STATIC_FORCEINLINE void __DSB (void)
 Data Synchronization Barrier. More...
 
__STATIC_FORCEINLINE void __DMB (void)
 Data Memory Barrier. More...
 
__STATIC_FORCEINLINE uint32_t __REV (uint32_t value)
 Reverse byte order (32 bit) More...
 
__STATIC_FORCEINLINE uint32_t __REV16 (uint32_t value)
 Reverse byte order (16 bit) More...
 
__STATIC_FORCEINLINE int16_t __REVSH (int16_t value)
 Reverse byte order (16 bit) More...
 
__STATIC_FORCEINLINE uint32_t __ROR (uint32_t op1, uint32_t op2)
 Rotate Right in unsigned value (32 bit) More...
 
__STATIC_FORCEINLINE uint32_t __RBIT (uint32_t value)
 Reverse bit order of value. More...
 
__STATIC_FORCEINLINE uint8_t __CLZ (uint32_t value)
 Count leading zeros. More...
 
__STATIC_FORCEINLINE int32_t __SSAT (int32_t val, uint32_t sat)
 Signed Saturate. More...
 
__STATIC_FORCEINLINE uint32_t __USAT (int32_t val, uint32_t sat)
 Unsigned Saturate. More...
 

Detailed Description

CMSIS compiler GCC header file.

Version
V5.9.0
Date
27. May 2021