Modules

 CMSIS Core Instruction Interface
 Access to dedicated instructions.
 

Macros

#define __get_FPSCR()   ((uint32_t)0U)
 Get FPSCR. More...
 
#define __set_FPSCR(x)   ((void)(x))
 Set FPSCR. More...
 
#define __get_FPSCR()   ((uint32_t)0U)
 Get FPSCR. More...
 
#define __set_FPSCR(x)   ((void)(x))
 Set FPSCR. More...
 

Functions

static __inline uint32_t __get_CONTROL (void)
 Enable IRQ Interrupts. 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 uint32_t __get_FPSCR (void)
 Get FPSCR. More...
 
static __inline void __set_FPSCR (uint32_t fpscr)
 Set FPSCR. More...
 
static void __enable_irq (void)
 Enable IRQ Interrupts. More...
 
static void __disable_irq (void)
 Disable IRQ Interrupts. More...
 

Detailed Description

Macro Definition Documentation

◆ __get_FPSCR [1/2]

#define __get_FPSCR (   void)    ((uint32_t)0U)

Get FPSCR.

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

Returns
Floating Point Status/Control register value

◆ __get_FPSCR [2/2]

#define __get_FPSCR (   void)    ((uint32_t)0U)

Get FPSCR.

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

Returns
Floating Point Status/Control register value

◆ __set_FPSCR [1/2]

#define __set_FPSCR (   x)    ((void)(x))

Set FPSCR.

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

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

◆ __set_FPSCR [2/2]

#define __set_FPSCR (   x)    ((void)(x))

Set FPSCR.

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

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

Function Documentation

◆ __disable_irq()

static void __disable_irq ( void  )
inlinestatic

Disable IRQ Interrupts.

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

◆ __enable_irq()

static void __enable_irq ( void  )
inlinestatic

Enable IRQ Interrupts.

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

◆ __get_APSR()

static __inline uint32_t __get_APSR ( void  )
static

Get APSR Register.

Returns the content of the APSR Register.

Returns
APSR Register value

◆ __get_CONTROL()

static __inline uint32_t __get_CONTROL ( void  )
static

Enable IRQ Interrupts.

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

Disable IRQ Interrupts

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

Get Control Register

Returns the content of the Control Register.

Returns
Control Register value

◆ __get_FPSCR()

static __inline uint32_t __get_FPSCR ( void  )
static

Get FPSCR.

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

Returns
Floating Point Status/Control register value

◆ __get_IPSR()

static __inline uint32_t __get_IPSR ( void  )
static

Get IPSR Register.

Returns the content of the IPSR Register.

Returns
IPSR Register value

◆ __get_MSP()

static __inline uint32_t __get_MSP ( void  )
static

Get Main Stack Pointer.

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

Returns
MSP Register value

◆ __get_PRIMASK()

static __inline uint32_t __get_PRIMASK ( void  )
static

Get Priority Mask.

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

Returns
Priority Mask value

◆ __get_PSP()

static __inline uint32_t __get_PSP ( void  )
static

Get Process Stack Pointer.

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

Returns
PSP Register value

◆ __get_xPSR()

static __inline uint32_t __get_xPSR ( void  )
static

Get xPSR Register.

Returns the content of the xPSR Register.

Returns
xPSR Register value

◆ __set_CONTROL()

static __inline void __set_CONTROL ( uint32_t  control)
static

Set Control Register.

Writes the given value to the Control Register.

Parameters
[in]controlControl Register value to set

◆ __set_FPSCR()

static __inline void __set_FPSCR ( uint32_t  fpscr)
static

Set FPSCR.

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

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

◆ __set_MSP()

static __inline void __set_MSP ( uint32_t  topOfMainStack)
static

Set Main Stack Pointer.

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

Parameters
[in]topOfMainStackMain Stack Pointer value to set

◆ __set_PRIMASK()

static __inline void __set_PRIMASK ( uint32_t  priMask)
static

Set Priority Mask.

Assigns the given value to the Priority Mask Register.

Parameters
[in]priMaskPriority Mask

◆ __set_PSP()

static __inline void __set_PSP ( uint32_t  topOfProcStack)
static

Set Process Stack Pointer.

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

Parameters
[in]topOfProcStackProcess Stack Pointer value to set