![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
This file defines all structures and symbols for CMSIS core:
- CMSIS version number
- Cortex-M core registers and bitfields
- Cortex-M core peripheral base address.
Modules | |
CMSIS CM3 Core Register | |
CMSIS CM3 Core Function Interface | |
Core Function Interface containing:
| |
CMSIS CM3 Core Debug Interface | |
Core Debug Interface containing:
| |
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. | |
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. | |
void | __CLREX (void) |
Remove the exclusive lock created by ldrex. | |
uint32_t | __get_BASEPRI (void) |
Return the Base Priority value. | |
void | __set_BASEPRI (uint32_t basePri) |
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 | __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
This file defines all structures and symbols for CMSIS core:
- CMSIS version number
- Cortex-M core registers and bitfields
- Cortex-M core peripheral base address.
Function Documentation
void __CLREX | ( | void | ) |
Remove the exclusive lock created by ldrex.
Removes the exclusive lock which is created by ldrex.
uint32_t __get_BASEPRI | ( | void | ) |
Return the Base Priority value.
- Returns:
- BasePriority
Return the content of the base priority register
uint32_t __get_CONTROL | ( | void | ) |
Return the Control Register value.
- Returns:
- Control value
Return the content of the control register
uint32_t __get_FAULTMASK | ( | void | ) |
Return the Fault Mask value.
- Returns:
- FaultMask
Return the content of the fault mask register
uint32_t __get_MSP | ( | void | ) |
Return the Main Stack Pointer.
- Returns:
- Main Stack Pointer
Return the current value of the MSP (main stack pointer) Cortex processor register
Get Main Stack Pointer.
- Returns:
- Main Stack Pointer
Return the current value of the MSP (main stack pointer) Cortex processor register
This function returns the current value of the Main Stack Pointer (MSP).
- Returns:
- MSP Register value
Return the Main Stack Pointer.
This function returns the current value of the Main Stack Pointer (MSP).
- Returns:
- MSP Register value
Definition at line 86 of file core_cm3.c.
uint32_t __get_PRIMASK | ( | void | ) |
Return the Priority Mask value.
- Returns:
- PriMask
Return state of the priority mask bit from the priority mask register
uint32_t __get_PSP | ( | void | ) |
Return the Process Stack Pointer.
- Returns:
- ProcessStackPointer
Return the actual process stack pointer
Get Process Stack Pointer.
- Returns:
- ProcessStackPointer
Return the actual process stack pointer
This function returns the current value of the Process Stack Pointer (PSP).
- Returns:
- PSP Register value
Return the Process Stack Pointer.
This function returns the current value of the Process Stack Pointer (PSP).
- Returns:
- PSP Register value
Definition at line 58 of file core_cm3.c.
uint8_t __LDREXB | ( | uint8_t * | addr ) |
LDR Exclusive (8 bit)
- Parameters:
-
*addr address pointer
- Returns:
- value of (*address)
Exclusive LDR command for 8 bit values)
- Parameters:
-
*addr address pointer
- Returns:
- value of (*address)
Exclusive LDR command for 8 bit value
- Parameters:
-
*addr address pointer
- Returns:
- value of (*address)
Exclusive LDR command for 8 bit values)
- Parameters:
-
*addr address pointer
- Returns:
- value of (*address)
Exclusive LDR command for 8 bit value
Definition at line 350 of file core_cm3.c.
uint16_t __LDREXH | ( | uint16_t * | addr ) |
LDR Exclusive (16 bit)
- Parameters:
-
*addr address pointer
- Returns:
- value of (*address)
Exclusive LDR command for 16 bit values
Definition at line 364 of file core_cm3.c.
uint32_t __LDREXW | ( | uint32_t * | addr ) |
LDR Exclusive (32 bit)
- Parameters:
-
*addr address pointer
- Returns:
- value of (*address)
Exclusive LDR command for 32 bit values
Definition at line 378 of file core_cm3.c.
uint32_t __RBIT | ( | uint32_t | value ) |
Reverse bit order of value.
- Parameters:
-
value value to reverse
- Returns:
- reversed value
Reverse bit order of value
Definition at line 336 of file core_cm3.c.
uint32_t __REV | ( | uint32_t | value ) |
Reverse byte order in integer value.
- Parameters:
-
value value to reverse
- Returns:
- reversed value
Reverse byte order in integer value
Definition at line 619 of file core_cm3.c.
uint32_t __REV16 | ( | uint16_t | value ) |
Reverse byte order in unsigned short value.
- Parameters:
-
value value to reverse
- Returns:
- reversed value
Reverse byte order in unsigned short value
Definition at line 114 of file core_cm3.c.
int32_t __REVSH | ( | int16_t | value ) |
Reverse byte order in signed short value with sign extension to integer.
- Parameters:
-
value value to reverse
- Returns:
- reversed value
Reverse byte order in signed short value with sign extension to integer
Definition at line 128 of file core_cm3.c.
void __set_BASEPRI | ( | uint32_t | basePri ) |
Set the Base Priority value.
- Parameters:
-
basePri BasePriority
Set the base priority register
void __set_CONTROL | ( | uint32_t | control ) |
Set the Control Register value.
- Parameters:
-
control Control value
Set the control register
void __set_FAULTMASK | ( | uint32_t | faultMask ) |
Set the Fault Mask value.
- Parameters:
-
faultMask faultMask value
Set the fault mask register
void __set_MSP | ( | uint32_t | topOfMainStack ) |
Set the Main Stack Pointer.
- Parameters:
-
topOfMainStack Main Stack Pointer
Assign the value mainStackPointer to the MSP (main stack pointer) Cortex processor register
Set Main Stack Pointer.
- Parameters:
-
topOfMainStack Main Stack Pointer
Assign the value mainStackPointer to the MSP (main stack pointer) Cortex processor register
This function assigns the given value to the Main Stack Pointer (MSP).
- Parameters:
-
[in] topOfMainStack Main Stack Pointer value to set
Set the Main Stack Pointer.
This function assigns the given value to the Main Stack Pointer (MSP).
- Parameters:
-
[in] topOfMainStack Main Stack Pointer value to set
Definition at line 100 of file core_cm3.c.
void __set_PRIMASK | ( | uint32_t | priMask ) |
Set the Priority Mask value.
- Parameters:
-
priMask PriMask
Set the priority mask bit in the priority mask register
void __set_PSP | ( | uint32_t | topOfProcStack ) |
Set the Process Stack Pointer.
- Parameters:
-
topOfProcStack Process Stack Pointer
Assign the value ProcessStackPointer to the MSP (process stack pointer) Cortex processor register
Set Process Stack Pointer.
- Parameters:
-
topOfProcStack Process Stack Pointer
Assign the value ProcessStackPointer to the MSP (process stack pointer) Cortex processor register
This function assigns the given value to the Process Stack Pointer (PSP).
- Parameters:
-
[in] topOfProcStack Process Stack Pointer value to set
Set the Process Stack Pointer.
This function assigns the given value to the Process Stack Pointer (PSP).
- Parameters:
-
[in] topOfProcStack Process Stack Pointer value to set
Definition at line 72 of file core_cm3.c.
uint32_t __STREXB | ( | uint8_t | value, |
uint8_t * | addr | ||
) |
STR Exclusive (8 bit)
- Parameters:
-
value value to store *addr address pointer
- Returns:
- successful / failed
Exclusive STR command for 8 bit values
Definition at line 393 of file core_cm3.c.
uint32_t __STREXH | ( | uint16_t | value, |
uint16_t * | addr | ||
) |
STR Exclusive (16 bit)
- Parameters:
-
value value to store *addr address pointer
- Returns:
- successful / failed
Exclusive STR command for 16 bit values
Definition at line 408 of file core_cm3.c.
uint32_t __STREXW | ( | uint32_t | value, |
uint32_t * | addr | ||
) |
STR Exclusive (32 bit)
- Parameters:
-
value value to store *addr address pointer
- Returns:
- successful / failed
Exclusive STR command for 32 bit values
Definition at line 423 of file core_cm3.c.
Generated on Tue Jul 12 2022 17:13:50 by
![doxygen](doxygen.png)