Contiki-NG
Functions

Functions

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

Detailed Description

Function Documentation

◆ __disable_irq()

__STATIC_INLINE void __disable_irq ( void  )

Disable IRQ Interrupts.

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

Definition at line 61 of file cmsis_armcc_V6.h.

References __get_CONTROL().

Referenced by int_master_read_and_disable().

◆ __enable_irq()

__STATIC_INLINE void __enable_irq ( void  )

Enable IRQ Interrupts.

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

Definition at line 50 of file cmsis_armcc_V6.h.

Referenced by int_master_enable().

◆ __get_APSR()

__STATIC_INLINE uint32_t __get_APSR ( void  )

Get APSR Register.

Returns the content of the APSR Register.

Returns
APSR Register value

Definition at line 93 of file cmsis_armcc.h.

◆ __get_CONTROL()

__STATIC_INLINE uint32_t __get_CONTROL ( void  )

Get Control Register.

Returns the content of the Control Register.

Returns
Control Register value

Definition at line 57 of file cmsis_armcc.h.

Referenced by __disable_irq().

◆ __get_IPSR()

__STATIC_INLINE uint32_t __get_IPSR ( void  )

Get IPSR Register.

Returns the content of the IPSR Register.

Returns
IPSR Register value

Definition at line 81 of file cmsis_armcc.h.

◆ __get_MSP()

__STATIC_INLINE uint32_t __get_MSP ( void  )

Get Main Stack Pointer.

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

Returns
MSP Register value

Definition at line 141 of file cmsis_armcc.h.

◆ __get_PRIMASK()

__STATIC_INLINE uint32_t __get_PRIMASK ( void  )

Get Priority Mask.

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

Returns
Priority Mask value

Definition at line 165 of file cmsis_armcc.h.

Referenced by int_master_is_enabled(), and int_master_read_and_disable().

◆ __get_PSP()

__STATIC_INLINE uint32_t __get_PSP ( void  )

Get Process Stack Pointer.

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

Returns
PSP Register value

Definition at line 117 of file cmsis_armcc.h.

◆ __get_xPSR()

__STATIC_INLINE uint32_t __get_xPSR ( void  )

Get xPSR Register.

Returns the content of the xPSR Register.

Returns
xPSR Register value

Definition at line 105 of file cmsis_armcc.h.

◆ __set_CONTROL()

__STATIC_INLINE void __set_CONTROL ( uint32_t  control)

Set Control Register.

Writes the given value to the Control Register.

Parameters
[in]controlControl Register value to set

Definition at line 69 of file cmsis_armcc.h.

◆ __set_MSP()

__STATIC_INLINE void __set_MSP ( uint32_t  topOfMainStack)

Set Main Stack Pointer.

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

Parameters
[in]topOfMainStackMain Stack Pointer value to set

Definition at line 153 of file cmsis_armcc.h.

◆ __set_PRIMASK()

__STATIC_INLINE void __set_PRIMASK ( uint32_t  priMask)

Set Priority Mask.

Assigns the given value to the Priority Mask Register.

Parameters
[in]priMaskPriority Mask

Definition at line 177 of file cmsis_armcc.h.

◆ __set_PSP()

__STATIC_INLINE void __set_PSP ( uint32_t  topOfProcStack)

Set Process Stack Pointer.

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

Parameters
[in]topOfProcStackProcess Stack Pointer value to set

Definition at line 129 of file cmsis_armcc.h.