mikroSDK Reference Manual

Topics

 CMSIS Core Instruction Interface
 

Functions list

__STATIC_FORCEINLINE void __enable_irq (void)
 Enable IRQ Interrupts.
 
__STATIC_FORCEINLINE void __disable_irq (void)
 Disable IRQ Interrupts.
 
__STATIC_FORCEINLINE uint32_t __get_CONTROL (void)
 Get Control Register.
 
__STATIC_FORCEINLINE void __set_CONTROL (uint32_t control)
 Set Control Register.
 
__STATIC_FORCEINLINE uint32_t __get_IPSR (void)
 Get IPSR Register.
 
__STATIC_FORCEINLINE uint32_t __get_APSR (void)
 Get APSR Register.
 
__STATIC_FORCEINLINE uint32_t __get_xPSR (void)
 Get xPSR Register.
 
__STATIC_FORCEINLINE uint32_t __get_PSP (void)
 Get Process Stack Pointer.
 
__STATIC_FORCEINLINE void __set_PSP (uint32_t topOfProcStack)
 Set Process Stack Pointer.
 
__STATIC_FORCEINLINE uint32_t __get_MSP (void)
 Get Main Stack Pointer.
 
__STATIC_FORCEINLINE void __set_MSP (uint32_t topOfMainStack)
 Set Main Stack Pointer.
 
__STATIC_FORCEINLINE uint32_t __get_PRIMASK (void)
 Get Priority Mask.
 
__STATIC_FORCEINLINE void __set_PRIMASK (uint32_t priMask)
 Set Priority Mask.
 
__STATIC_FORCEINLINE uint32_t __get_FPSCR (void)
 Get FPSCR.
 
__STATIC_FORCEINLINE void __set_FPSCR (uint32_t fpscr)
 Set FPSCR.
 

Function Documentation

◆ __disable_irq()

__STATIC_FORCEINLINE void __disable_irq ( void )

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

◆ __enable_irq()

__STATIC_FORCEINLINE void __enable_irq ( void )

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

◆ __get_APSR()

__STATIC_FORCEINLINE uint32_t __get_APSR ( void )

Returns the content of the APSR Register.

Returns
APSR Register value

◆ __get_CONTROL()

__STATIC_FORCEINLINE uint32_t __get_CONTROL ( void )

Returns the content of the Control Register.

Returns
Control Register value

◆ __get_FPSCR()

__STATIC_FORCEINLINE uint32_t __get_FPSCR ( void )

Returns the current value of the Floating Point Status/Control register.

Returns
Floating Point Status/Control register value

◆ __get_IPSR()

__STATIC_FORCEINLINE uint32_t __get_IPSR ( void )

Returns the content of the IPSR Register.

Returns
IPSR Register value

◆ __get_MSP()

__STATIC_FORCEINLINE uint32_t __get_MSP ( void )

Returns the current value of the Main Stack Pointer (MSP).

Returns
MSP Register value

◆ __get_PRIMASK()

__STATIC_FORCEINLINE uint32_t __get_PRIMASK ( void )

Returns the current state of the priority mask bit from the Priority Mask Register.

Returns
Priority Mask value

◆ __get_PSP()

__STATIC_FORCEINLINE uint32_t __get_PSP ( void )

Returns the current value of the Process Stack Pointer (PSP).

Returns
PSP Register value

◆ __get_xPSR()

__STATIC_FORCEINLINE uint32_t __get_xPSR ( void )

Returns the content of the xPSR Register.

Returns
xPSR Register value

◆ __set_CONTROL()

__STATIC_FORCEINLINE void __set_CONTROL ( uint32_t control)

Writes the given value to the Control Register.

Parameters
[in]controlControl Register value to set

◆ __set_FPSCR()

__STATIC_FORCEINLINE void __set_FPSCR ( uint32_t fpscr)

Assigns the given value to the Floating Point Status/Control register.

Parameters
[in]fpscrFloating Point Status/Control value to set

◆ __set_MSP()

__STATIC_FORCEINLINE void __set_MSP ( uint32_t topOfMainStack)

Assigns the given value to the Main Stack Pointer (MSP).

Parameters
[in]topOfMainStackMain Stack Pointer value to set

◆ __set_PRIMASK()

__STATIC_FORCEINLINE void __set_PRIMASK ( uint32_t priMask)

Assigns the given value to the Priority Mask Register.

Parameters
[in]priMaskPriority Mask

◆ __set_PSP()

__STATIC_FORCEINLINE void __set_PSP ( uint32_t topOfProcStack)

Assigns the given value to the Process Stack Pointer (PSP).

Parameters
[in]topOfProcStackProcess Stack Pointer value to set