n
Fork of LG by
core_cm3.c File Reference
CMSIS Cortex-M3 Core Peripheral Access Layer Source File. More...
Go to the source code of this file.
Functions | |
__ASM uint32_t | __get_PSP (void) |
Return the Process Stack Pointer. | |
__ASM void | __set_PSP (uint32_t topOfProcStack) |
Set the Process Stack Pointer. | |
__ASM uint32_t | __get_MSP (void) |
Return the Main Stack Pointer. | |
__ASM void | __set_MSP (uint32_t mainStackPointer) |
Set the Main Stack Pointer. | |
__ASM uint32_t | __REV16 (uint16_t value) |
Reverse byte order in unsigned short value. | |
__ASM int32_t | __REVSH (int16_t value) |
Reverse byte order in signed short value with sign extension to integer. | |
__ASM void | __CLREX (void) |
Remove the exclusive lock created by ldrex. | |
__ASM uint32_t | __get_BASEPRI (void) |
Return the Base Priority value. | |
__ASM void | __set_BASEPRI (uint32_t basePri) |
Set the Base Priority value. | |
__ASM uint32_t | __get_PRIMASK (void) |
Return the Priority Mask value. | |
__ASM void | __set_PRIMASK (uint32_t priMask) |
Set the Priority Mask value. | |
__ASM uint32_t | __get_FAULTMASK (void) |
Return the Fault Mask value. | |
__ASM void | __set_FAULTMASK (uint32_t faultMask) |
Set the Fault Mask value. | |
__ASM uint32_t | __get_CONTROL (void) |
Return the Control Register value. | |
__ASM void | __set_CONTROL (uint32_t control) |
Set the Control Register value. | |
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) | |
uint32_t | __REV (uint32_t value) |
Reverse byte order in integer value. |
Detailed Description
CMSIS Cortex-M3 Core Peripheral Access Layer Source File.
- Version:
- V1.30
- Date:
- 30. October 2009
- Note:
- Copyright (C) 2009 ARM Limited. All rights reserved.
- ARM Limited (ARM) is supplying this software for use with Cortex-M processor based microcontrollers. This file can be freely distributed within development tools that are supporting such ARM based processors.
- THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
Definition in file core_cm3.c.
Function Documentation
static __INLINE void __CLREX | ( | void | ) |
Remove the exclusive lock created by ldrex.
Remove the exclusive lock.
Removes the exclusive lock which is created by ldrex.
This function removes the exclusive lock which is created by LDREX.
Definition at line 142 of file core_cm3.c.
static __INLINE uint32_t __get_BASEPRI | ( | void | ) |
Return the Base Priority value.
- Returns:
- BasePriority
Return the content of the base priority register
Definition at line 154 of file core_cm3.c.
static __INLINE uint32_t __get_CONTROL | ( | void | ) |
Return the Control Register value.
- Returns:
- Control value
Return the content of the control register
Definition at line 232 of file core_cm3.c.
static __INLINE uint32_t __get_FAULTMASK | ( | void | ) |
Return the Fault Mask value.
- Returns:
- FaultMask
Return the content of the fault mask register
Definition at line 206 of file core_cm3.c.
static __INLINE uint32_t __get_PRIMASK | ( | void | ) |
Return the Priority Mask value.
- Returns:
- PriMask
Return state of the priority mask bit from the priority mask register
Definition at line 180 of file core_cm3.c.
static __INLINE void __set_BASEPRI | ( | uint32_t | basePri ) |
Set the Base Priority value.
- Parameters:
-
basePri BasePriority
Set the base priority register
Definition at line 167 of file core_cm3.c.
static __INLINE void __set_CONTROL | ( | uint32_t | control ) |
Set the Control Register value.
- Parameters:
-
control Control value
Set the control register
Definition at line 245 of file core_cm3.c.
static __INLINE void __set_FAULTMASK | ( | uint32_t | faultMask ) |
Set the Fault Mask value.
- Parameters:
-
faultMask faultMask value
Set the fault mask register
Definition at line 219 of file core_cm3.c.
static __INLINE void __set_PRIMASK | ( | uint32_t | priMask ) |
Set the Priority Mask value.
- Parameters:
-
priMask PriMask
Set the priority mask bit in the priority mask register
Definition at line 193 of file core_cm3.c.
Generated on Tue Jul 12 2022 15:16:12 by 1.7.2