Cps - ST STM32F4 Series Programming Manual

Cortex-m4
Hide thumbs Also See for STM32F4 Series:
Table of Contents

Advertisement

PM0214
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 22
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
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)
DocID022708 Rev 6
The STM32 Cortex-M4 instruction set
Exception mask
181/260
259

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Stm32l4+ seriesStm32f3 series

Table of Contents

Save PDF