Cortex_M_SVD.SCB

Entities

Simple Types

Record Types

Subtypes

Variables

Description

------------- Registers -- -------------

AIRCR_ENDIANNESS_Field

type AIRCR_ENDIANNESS_Field is
  (
   Little_Endian,
   Big_Endian)
  with Size => 1;
Enumeration Literal
Little_Endian

Data is big endian

Big_Endian

AIRCR_Register

type AIRCR_Register is record
   Reserved_0_0  : HAL.Bit := 16#0#;
   VECTCLRACTIVE : Boolean := False;
   SYSRESETREQ   : Boolean := False;
   Reserved_3_14 : HAL.UInt12 := 16#0#;
   ENDIANNESS    : AIRCR_ENDIANNESS_Field :=
                    Cortex_M_SVD.SCB.Little_Endian;
   VECTKEY       : AIRCR_VECTKEY_Field := Cortex_M_SVD.SCB.Key_Read;
end record;
Record fields
Reserved_0_0

Write-only. Reserved for debug use. This bit reads as 0. When writing to the register youmust write 0 to this bit, otherwise behavior is Unpredictable.

VECTCLRACTIVE

Write-only. System reset request bit setting is implementation defined.

SYSRESETREQ

unspecified

Reserved_3_14

Read-only. Data endianness bit setting is implementation defined.

ENDIANNESS

Register key. On write, write 0x5FA to VECTKEY, otherwise the write is ignored. Reads as 0xFA05

VECTKEY

AIRCR_VECTKEY_Field

type AIRCR_VECTKEY_Field is
  (
   Key,
   Key_Read)
  with Size => 16;
Enumeration Literal
Key

The read key

Key_Read

CCR_Register

type CCR_Register is record
   Reserved_0_2   : HAL.UInt3 := 16#0#;
   UNALIGNED_TRP  : Boolean := False;
   Reserved_4_8   : HAL.UInt5 := 16#0#;
   STKALIGN       : Boolean := True;
   Reserved_10_31 : HAL.UInt22 := 16#0#;
end record;
Record fields
Reserved_0_2

Enables unalign access traps.

UNALIGNED_TRP

unspecified

Reserved_4_8

Read-only. Always reads-as-one. It indicates stack alignment on exception entry is 8-byte aligned.

STKALIGN

unspecified

Reserved_10_31

CPUID_Constant_Field

subtype CPUID_Constant_Field is HAL.UInt4;

CPUID_Implementer_Field

type CPUID_Implementer_Field is
  (
   Arm)
  with Size => 8;
Enumeration Literal
Arm

CPUID_PartNo_Field

type CPUID_PartNo_Field is
  (
   Cortex_M7)
  with Size => 12;
Enumeration Literal
Cortex_M7

CPUID_Register

type CPUID_Register is record
   Revision    : CPUID_Revision_Field;
   PartNo      : CPUID_PartNo_Field;
   Constant_k  : CPUID_Constant_Field;
   Variant     : CPUID_Variant_Field;
   Implementer : CPUID_Implementer_Field;
end record;
Record fields
Revision

Read-only. Part number of the processor.

PartNo

Read-only. Reads as 0xF.

Constant_k

Read-only. Variant number, the r value in the rnpn product revision identifier.

Variant

Read-only. Implementer code.

Implementer

CPUID_Revision_Field

type CPUID_Revision_Field is
  (
   P0,
   P1,
   P2)
  with Size => 4;
Enumeration Literal
P0

Patch 1

P1

Patch 2

P2

CPUID_Variant_Field

type CPUID_Variant_Field is
  (
   R0,
   R1)
  with Size => 4;
Enumeration Literal
R0

Revision 1

R1

ICSR_Register

type ICSR_Register is record
   VECTACTIVE     : ICSR_VECTACTIVE_Field := 16#0#;
   Reserved_6_11  : HAL.UInt6 := 16#0#;
   VECTPENDING    : ICSR_VECTPENDING_Field := 16#0#;
   Reserved_18_21 : HAL.UInt4 := 16#0#;
   ISRPENDING     : Boolean := False;
   Reserved_23_24 : HAL.UInt2 := 16#0#;
   PENDSTCLR      : Boolean := False;
   PENDSTSET      : Boolean := False;
   PENDSVCLR      : Boolean := False;
   PENDSVSET      : Boolean := False;
   Reserved_29_30 : HAL.UInt2 := 16#0#;
   NMIPENDSET     : Boolean := False;
end record;
Record fields
VECTACTIVE

unspecified

Reserved_6_11

Read-only. Indicates the exception number of the highest priority pending enabled exception.

VECTPENDING

unspecified

Reserved_18_21

Interrupt pending flag, excluding NMI and Faults

ISRPENDING

unspecified

Reserved_23_24

Write-only. SysTick exception clear-pending bit.

PENDSTCLR

SysTick exception set-pending bit.

PENDSTSET

Write-only. PendSV clear-pending bit.

PENDSVCLR

PendSV set-pending bit.

PENDSVSET

unspecified

Reserved_29_30

NMI set-pending bit.

NMIPENDSET

ICSR_VECTACTIVE_Field

subtype ICSR_VECTACTIVE_Field is HAL.UInt6;

ICSR_VECTPENDING_Field

subtype ICSR_VECTPENDING_Field is HAL.UInt6;

SCB_Periph

SCB_Periph : aliased SCB_Peripheral
  with Import, Address => System'To_Address (16#E000ED00#);

SCB_Peripheral

type SCB_Peripheral is record
   CPUID : aliased CPUID_Register;
   ICSR  : aliased ICSR_Register;
   AIRCR : aliased AIRCR_Register;
   SCR   : aliased SCR_Register;
   CCR   : aliased CCR_Register;
   SHPR2 : aliased SHPR2_Register;
   SHPR3 : aliased SHPR3_Register;
end record;
Record fields
CPUID

Interrupt Control and State Register

ICSR

Application Interrupt and Reset Control Register

AIRCR

System Control Register

SCR

Configuration and Control Register

CCR

System Handler Priority Register 2

SHPR2

System Handler Priority Register 3

SHPR3

SCR_Register

type SCR_Register is record
   Reserved_0_0  : HAL.Bit := 16#0#;
   SLEEPONEXIT   : Boolean := False;
   SLEEPDEEP     : Boolean := False;
   Reserved_3_3  : HAL.Bit := 16#0#;
   SEVONPEND     : Boolean := False;
   Reserved_5_31 : HAL.UInt27 := 16#0#;
end record;
Record fields
Reserved_0_0

Indicates sleep-on-exit when returning from Handler mode to Thread mode

SLEEPONEXIT

Controls whether the processor uses sleep or deep sleep as its low-power mode

SLEEPDEEP

unspecified

Reserved_3_3

Send event on pending bit

SEVONPEND

unspecified

Reserved_5_31

SHPR2_PRI_11_Field

subtype SHPR2_PRI_11_Field is HAL.UInt8;

SHPR2_Register

type SHPR2_Register is record
   Reserved_0_23 : HAL.UInt24 := 16#0#;
   PRI_11        : SHPR2_PRI_11_Field := 16#0#;
end record;
Record fields
Reserved_0_23

Priority of the system handler, SVCall

PRI_11

SHPR3_PRI_14_Field

subtype SHPR3_PRI_14_Field is HAL.UInt8;

SHPR3_PRI_15_Field

subtype SHPR3_PRI_15_Field is HAL.UInt8;

SHPR3_Register

type SHPR3_Register is record
   Reserved_0_15 : HAL.UInt16 := 16#0#;
   PRI_14        : SHPR3_PRI_14_Field := 16#0#;
   PRI_15        : SHPR3_PRI_15_Field := 16#0#;
end record;
Record fields
Reserved_0_15

Priority of the system handler, PendSV

PRI_14

Priority of the system handler, SysTick

PRI_15