Cps - ST STM32H7 Series Programming Manual

Hide thumbs Also See for STM32H7 Series:
Table of Contents

Advertisement

The STM32 Cortex-M4 instruction set
3.11.2

CPS

Change processor state.
Syntax
CPSeffect iflags
Where:
'effect' is one of:
IE: Clears the special purpose register.
ID: Sets the special purpose register.
'iflags' is a sequence of one or more flags:
i: Set or clear PRIMASK.
f: Set or clear FAULTMASK.
Operation
CPS changes the PRIMASK and FAULTMASK special register values. See
registers on page 23
Restrictions
The restrictions are:
Use CPS only from privileged software, it has no effect if used in unprivileged software
CPS cannot be conditional and so must not be used inside an IT block.
Condition flags
This instruction does not change the condition flags.
Examples
CPSID i
CPSID f
CPSIE i
CPSIE f
182/262
for more information about these registers.
; Disable interrupts and configurable fault handlers (set PRIMASK)
; Disable interrupts and all fault handlers (set FAULTMASK)
; Enable interrupts and configurable fault handlers(clear PRIMASK)
; Enable interrupts and fault handlers (clear FAULTMASK)
PM0214 Rev 9
PM0214
Exception mask

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32H7 Series and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF