RP2040_SVD.TIMER

Entities

Array Types

Record Types

Subtypes

Variables

Description

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

ARMED_ARMED_Field

subtype ARMED_ARMED_Field is HAL.UInt4;

ARMED_Register

type ARMED_Register is record
   ARMED         : ARMED_ARMED_Field := 16#0#;
   Reserved_4_31 : HAL.UInt28 := 16#0#;
end record;
Record fields
ARMED

unspecified

Reserved_4_31

DBGPAUSE_DBG_Field

type DBGPAUSE_DBG_Field
  (As_Array : Boolean := False)
is record
   case As_Array is
      when False =>
         Val : HAL.UInt2;
      when True =>
         Arr : DBGPAUSE_DBG_Field_Array;
   end case;
end record;
Record fields
As_Array
Val
Arr

DBGPAUSE_DBG_Field_Array

type DBGPAUSE_DBG_Field_Array is array (0 .. 1) of Boolean
  with Component_Size => 1, Size => 2;

DBGPAUSE_Register

type DBGPAUSE_Register is record
   Reserved_0_0  : HAL.Bit := 16#1#;
   DBG           : DBGPAUSE_DBG_Field := (As_Array => False, Val => 16#1#);
   Reserved_3_31 : HAL.UInt29 := 16#0#;
end record;
Record fields
Reserved_0_0

Pause when processor 0 is in debug mode

DBG

unspecified

Reserved_3_31

INTE_Register

type INTE_Register is record
   ALARM_0       : Boolean := False;
   ALARM_1       : Boolean := False;
   ALARM_2       : Boolean := False;
   ALARM_3       : Boolean := False;
   Reserved_4_31 : HAL.UInt28 := 16#0#;
end record;
Record fields
ALARM_0

unspecified

ALARM_1

unspecified

ALARM_2

unspecified

ALARM_3

unspecified

Reserved_4_31

INTF_Register

type INTF_Register is record
   ALARM_0       : Boolean := False;
   ALARM_1       : Boolean := False;
   ALARM_2       : Boolean := False;
   ALARM_3       : Boolean := False;
   Reserved_4_31 : HAL.UInt28 := 16#0#;
end record;
Record fields
ALARM_0

unspecified

ALARM_1

unspecified

ALARM_2

unspecified

ALARM_3

unspecified

Reserved_4_31

INTR_Register

type INTR_Register is record
   ALARM_0       : Boolean := False;
   ALARM_1       : Boolean := False;
   ALARM_2       : Boolean := False;
   ALARM_3       : Boolean := False;
   Reserved_4_31 : HAL.UInt28 := 16#0#;
end record;
Record fields
ALARM_0

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

ALARM_1

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

ALARM_2

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

ALARM_3

unspecified

Reserved_4_31

INTS_Register

type INTS_Register is record
   ALARM_0       : Boolean;
   ALARM_1       : Boolean;
   ALARM_2       : Boolean;
   ALARM_3       : Boolean;
   Reserved_4_31 : HAL.UInt28;
end record;
Record fields
ALARM_0

Read-only.

ALARM_1

Read-only.

ALARM_2

Read-only.

ALARM_3

unspecified

Reserved_4_31

PAUSE_Register

type PAUSE_Register is record
   PAUSE         : Boolean := False;
   Reserved_1_31 : HAL.UInt31 := 16#0#;
end record;
Record fields
PAUSE

unspecified

Reserved_1_31

TIMER_Periph

TIMER_Periph : aliased TIMER_Peripheral
  with Import, Address => TIMER_Base;

TIMER_Peripheral

type TIMER_Peripheral is record
   TIMEHW   : aliased HAL.UInt32;
   TIMELW   : aliased HAL.UInt32;
   TIMEHR   : aliased HAL.UInt32;
   TIMELR   : aliased HAL.UInt32;
   ALARM0   : aliased HAL.UInt32;
   ALARM1   : aliased HAL.UInt32;
   ALARM2   : aliased HAL.UInt32;
   ALARM3   : aliased HAL.UInt32;
   ARMED    : aliased ARMED_Register;
   TIMERAWH : aliased HAL.UInt32;
   TIMERAWL : aliased HAL.UInt32;
   DBGPAUSE : aliased DBGPAUSE_Register;
   PAUSE    : aliased PAUSE_Register;
   INTR     : aliased INTR_Register;
   INTE     : aliased INTE_Register;
   INTF     : aliased INTF_Register;
   INTS     : aliased INTS_Register;
end record;
Record fields
TIMEHW

Write to bits 31:0 of time\n writes do not get copied to time until timehw is written

TIMELW

Read from bits 63:32 of time\n always read timelr before timehr

TIMEHR

Read from bits 31:0 of time

TIMELR

Arm alarm 0, and configure the time it will fire.\n Once armed, the alarm fires when TIMER_ALARM0 == TIMELR.\n The alarm will disarm itself once it fires, and can\n be disarmed early using the ARMED status register.

ALARM0

Arm alarm 1, and configure the time it will fire.\n Once armed, the alarm fires when TIMER_ALARM1 == TIMELR.\n The alarm will disarm itself once it fires, and can\n be disarmed early using the ARMED status register.

ALARM1

Arm alarm 2, and configure the time it will fire.\n Once armed, the alarm fires when TIMER_ALARM2 == TIMELR.\n The alarm will disarm itself once it fires, and can\n be disarmed early using the ARMED status register.

ALARM2

Arm alarm 3, and configure the time it will fire.\n Once armed, the alarm fires when TIMER_ALARM3 == TIMELR.\n The alarm will disarm itself once it fires, and can\n be disarmed early using the ARMED status register.

ALARM3

Indicates the armed/disarmed status of each alarm.\n A write to the corresponding ALARMx register arms the alarm.\n Alarms automatically disarm upon firing, but writing ones here\n will disarm immediately without waiting to fire.

ARMED

Raw read from bits 63:32 of time (no side effects)

TIMERAWH

Raw read from bits 31:0 of time (no side effects)

TIMERAWL

Set bits high to enable pause when the corresponding debug ports are active

DBGPAUSE

Set high to pause the timer

PAUSE

Raw Interrupts

INTR

Interrupt Enable

INTE

Interrupt Force

INTF

Interrupt status after masking & forcing

INTS