CMSIS Cortex-M3 Core Peripheral Access Layer Source File. More...
#include <stdint.h>Defines | |
| #define | __ASM __asm |
| #define | __INLINE inline |
Functions | |
| uint32_t | __get_PSP (void) |
| Return the Process Stack Pointer. | |
| void | __set_PSP (uint32_t topOfProcStack) |
| Set the Process Stack Pointer. | |
| uint32_t | __get_MSP (void) |
| Return the Main Stack Pointer. | |
| void | __set_MSP (uint32_t topOfMainStack) |
| Set the Main Stack Pointer. | |
| void | __set_IPSR (uint32_t value) |
| Set the Main Stack Pointer. | |
| uint32_t | __get_BASEPRI (void) |
| Return the Base Priority value. | |
| void | __set_BASEPRI (uint32_t value) |
| Set the Base Priority value. | |
| uint32_t | __get_PRIMASK (void) |
| Return the Priority Mask value. | |
| void | __set_PRIMASK (uint32_t priMask) |
| Set the Priority Mask value. | |
| uint32_t | __get_FAULTMASK (void) |
| Return the Fault Mask value. | |
| void | __set_FAULTMASK (uint32_t faultMask) |
| Set the Fault Mask value. | |
| uint32_t | __get_CONTROL (void) |
| Return the Control Register value. | |
| void | __set_CONTROL (uint32_t control) |
| Set the Control Register value. | |
| uint32_t | __REV (uint32_t value) |
| Reverse byte order in integer value. | |
| uint32_t | __REV16 (uint16_t value) |
| Reverse byte order in unsigned short value. | |
| int32_t | __REVSH (int16_t value) |
| Reverse byte order in signed short value with sign extension to integer. | |
| uint32_t | __RBIT (uint32_t value) |
| Reverse bit order of value. | |
| uint8_t | __LDREXB (uint8_t *addr) |
| LDR Exclusive (8 bit) | |
| uint16_t | __LDREXH (uint16_t *addr) |
| LDR Exclusive (16 bit) | |
| uint32_t | __LDREXW (uint32_t *addr) |
| LDR Exclusive (32 bit) | |
| uint32_t | __STREXB (uint8_t value, uint8_t *addr) |
| STR Exclusive (8 bit) | |
| uint32_t | __STREXH (uint16_t value, uint16_t *addr) |
| STR Exclusive (16 bit) | |
| uint32_t | __STREXW (uint32_t value, uint32_t *addr) |
| STR Exclusive (32 bit) | |
CMSIS Cortex-M3 Core Peripheral Access Layer Source File.
| #define __ASM __asm |
asm keyword for GNU Compiler
Referenced by __get_BASEPRI(), __get_CONTROL(), __get_FAULTMASK(), __get_PRIMASK(), __LDREXB(), __LDREXH(), __LDREXW(), __RBIT(), __REV(), __REV16(), __REVSH(), __set_BASEPRI(), __set_CONTROL(), __set_FAULTMASK(), __set_IPSR(), __set_PRIMASK(), __STREXB(), __STREXH(), and __STREXW().
| #define __INLINE inline |
inline keyword for GNU Compiler
| uint32_t __get_PSP | ( | void | ) |
Return the Process Stack Pointer.
Return the actual process stack pointer
| void __set_PSP | ( | uint32_t | topOfProcStack | ) |
Set the Process Stack Pointer.
| topOfProcStack | Process Stack Pointer |
Assign the value ProcessStackPointer to the MSP (process stack pointer) Cortex processor register
| uint32_t __get_MSP | ( | void | ) |
Return the Main Stack Pointer.
Return the current value of the MSP (main stack pointer) Cortex processor register
| void __set_MSP | ( | uint32_t | topOfMainStack | ) |
Set the Main Stack Pointer.
| topOfMainStack | Main Stack Pointer |
Assign the value mainStackPointer to the MSP (main stack pointer) Cortex processor register
| void __set_IPSR | ( | uint32_t | value | ) |
Set the Main Stack Pointer.
| topOfMainStack | Main Stack Pointer |
Assign the value mainStackPointer to the MSP (main stack pointer) Cortex processor register
References __ASM.
| uint32_t __get_BASEPRI | ( | void | ) |
Return the Base Priority value.
Return the content of the base priority register
References __ASM.
| void __set_BASEPRI | ( | uint32_t | value | ) |
Set the Base Priority value.
| basePri | BasePriority |
Set the base priority register
References __ASM.
| uint32_t __get_PRIMASK | ( | void | ) |
Return the Priority Mask value.
Return state of the priority mask bit from the priority mask register
References __ASM.
| void __set_PRIMASK | ( | uint32_t | priMask | ) |
Set the Priority Mask value.
| priMask | PriMask |
Set the priority mask bit in the priority mask register
References __ASM.
| uint32_t __get_FAULTMASK | ( | void | ) |
Return the Fault Mask value.
Return the content of the fault mask register
References __ASM.
| void __set_FAULTMASK | ( | uint32_t | faultMask | ) |
Set the Fault Mask value.
| faultMask | faultMask value |
Set the fault mask register
References __ASM.
| uint32_t __get_CONTROL | ( | void | ) |
Return the Control Register value.
Return the content of the control register
References __ASM.
| void __set_CONTROL | ( | uint32_t | control | ) |
Set the Control Register value.
| control | Control value |
Set the control register
References __ASM.
Reverse byte order in integer value.
| value | value to reverse |
Reverse byte order in integer value
References __ASM.
Reverse byte order in unsigned short value.
| value | value to reverse |
Reverse byte order in unsigned short value
References __ASM.
Reverse byte order in signed short value with sign extension to integer.
| value | value to reverse |
Reverse byte order in signed short value with sign extension to integer
References __ASM.
Reverse bit order of value.
| value | value to reverse |
Reverse bit order of value
References __ASM.
LDR Exclusive (8 bit)
| *addr | address pointer |
Exclusive LDR command for 8 bit value
References __ASM.
LDR Exclusive (16 bit)
| *addr | address pointer |
Exclusive LDR command for 16 bit values
References __ASM.
LDR Exclusive (32 bit)
| *addr | address pointer |
Exclusive LDR command for 32 bit values
References __ASM.
STR Exclusive (8 bit)
| value | value to store |
| *addr | address pointer |
Exclusive STR command for 8 bit values
References __ASM.
STR Exclusive (16 bit)
| value | value to store |
| *addr | address pointer |
Exclusive STR command for 16 bit values
References __ASM.