Nut/OS  5.0.5
API Reference
CMSIS Core Register Access Functions
Collaboration diagram for CMSIS Core Register Access Functions:

Functions

__STATIC_INLINE void __enable_irq (void)
 Enable IRQ Interrupts.
__STATIC_INLINE void __disable_irq (void)
 Disable IRQ Interrupts.
__STATIC_INLINE uint32_t __get_CONTROL (void)
 Get Control Register.
__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.

Function Documentation

__STATIC_INLINE void __enable_irq ( void  )

Enable IRQ Interrupts.

This function enables IRQ interrupts by clearing the I-bit in the CPSR. Can only be executed in Privileged modes.

References __ASM.

Referenced by Cortex_IntInit(), and Lpc17xxWatchDogRestart().

__STATIC_INLINE void __disable_irq ( void  )

Disable IRQ Interrupts.

This function disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes.

References __ASM.

Referenced by Lpc17xxWatchDogRestart().

__STATIC_INLINE uint32_t __get_CONTROL ( void  )

Get Control Register.

This function returns the content of the Control Register.

Returns:
Control Register value

References __ASM.

Referenced by CortexExceptHandler().

__STATIC_INLINE void __set_CONTROL ( uint32_t  control)

Set Control Register.

This function writes the given value to the Control Register.

Parameters:
[in]controlControl Register value to set

References __ASM.

Referenced by CortexExceptHandler().

__STATIC_INLINE uint32_t __get_IPSR ( void  )

Get IPSR Register.

This function returns the content of the IPSR Register.

Returns:
IPSR Register value

References __ASM.

__STATIC_INLINE uint32_t __get_APSR ( void  )

Get APSR Register.

This function returns the content of the APSR Register.

Returns:
APSR Register value

References __ASM.

__STATIC_INLINE uint32_t __get_xPSR ( void  )

Get xPSR Register.

This function returns the content of the xPSR Register.

Returns:
xPSR Register value

References __ASM.

uint32_t __get_PSP ( void  )

Get Process Stack Pointer.

This function returns the current value of the Process Stack Pointer (PSP).

Returns:
PSP Register value

References __ASM.

void __set_PSP ( uint32_t  topOfProcStack)

Set Process Stack Pointer.

This function assigns the given value to the Process Stack Pointer (PSP).

Parameters:
[in]topOfProcStackProcess Stack Pointer value to set

References __ASM.

Referenced by Cortex_MemInit().

uint32_t __get_MSP ( void  )

Get Main Stack Pointer.

This function returns the current value of the Main Stack Pointer (MSP).

Returns:
MSP Register value

References __ASM.

void __set_MSP ( uint32_t  topOfMainStack)

Set Main Stack Pointer.

This function assigns the given value to the Main Stack Pointer (MSP).

Parameters:
[in]topOfMainStackMain Stack Pointer value to set

References __ASM.

__STATIC_INLINE uint32_t __get_PRIMASK ( void  )

Get Priority Mask.

This function returns the current state of the priority mask bit from the Priority Mask Register.

Returns:
Priority Mask value

References __ASM.

__STATIC_INLINE void __set_PRIMASK ( uint32_t  priMask)

Set Priority Mask.

This function assigns the given value to the Priority Mask Register.

Parameters:
[in]priMaskPriority Mask

References __ASM.