|
YAHAL
Yet Another Hardware Abstraction Library
|
CMSIS compiler GCC header file. More...
Go to the source code of this file.
Macros | |
| #define | __has_builtin(x) |
| #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 __cmsis_start |
| #define | __INITIAL_SP __StackTop |
| #define | __STACK_LIMIT __StackLimit |
| #define | __VECTOR_TABLE __Vectors |
| #define | __VECTOR_TABLE_ATTRIBUTE __attribute__((used, section(".vectors"))) |
| #define | __CMSIS_GCC_OUT_REG(r) |
| #define | __CMSIS_GCC_RW_REG(r) |
| #define | __CMSIS_GCC_USE_REG(r) |
| #define | __NOP() |
| No Operation. | |
| #define | __WFI() |
| Wait For Interrupt. | |
| #define | __WFE() |
| Wait For Event. | |
| #define | __SEV() |
| Send Event. | |
| #define | __BKPT(value) |
| Breakpoint. | |
Functions | |
| struct | __attribute__ ((packed)) T_UINT32 |
| __STATIC_FORCEINLINE __NO_RETURN void | __cmsis_start (void) |
| Initializes data and bss sections. | |
| __STATIC_FORCEINLINE void | __ISB (void) |
| Instruction Synchronization Barrier. | |
| __STATIC_FORCEINLINE void | __DSB (void) |
| Data Synchronization Barrier. | |
| __STATIC_FORCEINLINE void | __DMB (void) |
| Data Memory Barrier. | |
| __STATIC_FORCEINLINE uint32_t | __REV (uint32_t value) |
| Reverse byte order (32 bit) | |
| __STATIC_FORCEINLINE uint32_t | __REV16 (uint32_t value) |
| Reverse byte order (16 bit) | |
| __STATIC_FORCEINLINE int16_t | __REVSH (int16_t value) |
| Reverse byte order (16 bit) | |
| __STATIC_FORCEINLINE uint32_t | __ROR (uint32_t op1, uint32_t op2) |
| Rotate Right in unsigned value (32 bit) | |
| __STATIC_FORCEINLINE uint32_t | __RBIT (uint32_t value) |
| Reverse bit order of value. | |
| __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. | |
| __STATIC_INLINE uint32_t | __get_FPSCR (void) |
| Get FPSCR. | |
| __STATIC_INLINE void | __set_FPSCR (uint32_t fpscr) |
| Set FPSCR. | |
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 |
| #define __ALIAS | ( | x | ) |
Definition at line 123 of file cmsis_gcc.h.
| #define __ALIGNED | ( | x | ) |
Definition at line 111 of file cmsis_gcc.h.
| #define __ASM __asm |
Definition at line 41 of file cmsis_gcc.h.
| #define __COMPILER_BARRIER | ( | ) |
Definition at line 117 of file cmsis_gcc.h.
| #define __has_builtin | ( | x | ) |
Definition at line 36 of file cmsis_gcc.h.
| #define __INITIAL_SP __StackTop |
Definition at line 176 of file cmsis_gcc.h.
| #define __INLINE inline |
Definition at line 44 of file cmsis_gcc.h.
| #define __NO_INIT __attribute__ ((section (".bss.noinit"))) |
Definition at line 120 of file cmsis_gcc.h.
| #define __NO_RETURN __attribute__((__noreturn__)) |
Definition at line 53 of file cmsis_gcc.h.
| #define __PACKED __attribute__((packed, aligned(1))) |
Definition at line 62 of file cmsis_gcc.h.
| #define __PACKED_STRUCT struct __attribute__((packed, aligned(1))) |
Definition at line 65 of file cmsis_gcc.h.
| #define __PACKED_UNION union __attribute__((packed, aligned(1))) |
Definition at line 68 of file cmsis_gcc.h.
| #define __PROGRAM_START __cmsis_start |
Definition at line 172 of file cmsis_gcc.h.
| #define __RESTRICT __restrict |
Definition at line 114 of file cmsis_gcc.h.
| #define __STACK_LIMIT __StackLimit |
Definition at line 180 of file cmsis_gcc.h.
| #define __STATIC_FORCEINLINE __attribute__((always_inline)) static inline |
Definition at line 50 of file cmsis_gcc.h.
| #define __STATIC_INLINE static inline |
Definition at line 47 of file cmsis_gcc.h.
| #define __UNALIGNED_UINT16_READ | ( | addr | ) |
Definition at line 92 of file cmsis_gcc.h.
| #define __UNALIGNED_UINT16_WRITE | ( | addr, | |
| val ) |
Definition at line 84 of file cmsis_gcc.h.
| #define __UNALIGNED_UINT32 | ( | x | ) |
Definition at line 76 of file cmsis_gcc.h.
| #define __UNALIGNED_UINT32_READ | ( | addr | ) |
Definition at line 108 of file cmsis_gcc.h.
| #define __UNALIGNED_UINT32_WRITE | ( | addr, | |
| val ) |
Definition at line 100 of file cmsis_gcc.h.
| #define __USED __attribute__((used)) |
Definition at line 56 of file cmsis_gcc.h.
| #define __VECTOR_TABLE __Vectors |
Definition at line 184 of file cmsis_gcc.h.
| #define __VECTOR_TABLE_ATTRIBUTE __attribute__((used, section(".vectors"))) |
Definition at line 188 of file cmsis_gcc.h.
| #define __WEAK __attribute__((weak)) |
Definition at line 59 of file cmsis_gcc.h.
| struct __attribute__ | ( | (packed) | ) |
Definition at line 1 of file cmsis_gcc.h.
| __STATIC_FORCEINLINE __NO_RETURN void __cmsis_start | ( | void | ) |
Initializes data and bss sections.
This default implementations initialized all data and additional bss sections relying on .copy.table and .zero.table specified properly in the used linker script.
Definition at line 137 of file cmsis_gcc.h.
| __PACKED_STRUCT T_UINT16_READ { uint16_t v |
Definition at line 90 of file cmsis_gcc.h.
| __PACKED_STRUCT T_UINT16_WRITE { uint16_t v |
Definition at line 82 of file cmsis_gcc.h.
| __PACKED_STRUCT T_UINT32_READ { uint32_t v |
Definition at line 106 of file cmsis_gcc.h.
| __PACKED_STRUCT T_UINT32_WRITE { uint32_t v |
Definition at line 98 of file cmsis_gcc.h.