------------- Registers -- -------------
subtype CLKDIV_M1_CLKDIV_M1_Field is HAL.UInt16;
type CLKDIV_M1_Register is record
CLKDIV_M1 : CLKDIV_M1_CLKDIV_M1_Field := 16#0#;
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type CTRL_Register is record
RTC_ENABLE : Boolean := False;
RTC_ACTIVE : Boolean := False;
Reserved_2_3 : HAL.UInt2 := 16#0#;
LOAD : Boolean := False;
Reserved_5_7 : HAL.UInt3 := 16#0#;
FORCE_NOTLEAPYEAR : Boolean := False;
Reserved_9_31 : HAL.UInt23 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type INTE_Register is record
RTC : Boolean := False;
Reserved_1_31 : HAL.UInt31 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type INTF_Register is record
RTC : Boolean := False;
Reserved_1_31 : HAL.UInt31 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type INTR_Register is record
RTC : Boolean;
Reserved_1_31 : HAL.UInt31;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type INTS_Register is record
RTC : Boolean;
Reserved_1_31 : HAL.UInt31;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype IRQ_SETUP_0_DAY_Field is HAL.UInt5;
subtype IRQ_SETUP_0_MONTH_Field is HAL.UInt4;
type IRQ_SETUP_0_Register is record
DAY : IRQ_SETUP_0_DAY_Field := 16#0#;
Reserved_5_7 : HAL.UInt3 := 16#0#;
MONTH : IRQ_SETUP_0_MONTH_Field := 16#0#;
YEAR : IRQ_SETUP_0_YEAR_Field := 16#0#;
DAY_ENA : Boolean := False;
MONTH_ENA : Boolean := False;
YEAR_ENA : Boolean := False;
Reserved_27_27 : HAL.Bit := 16#0#;
MATCH_ENA : Boolean := False;
MATCH_ACTIVE : Boolean := False;
Reserved_30_31 : HAL.UInt2 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype IRQ_SETUP_0_YEAR_Field is HAL.UInt12;
subtype IRQ_SETUP_1_DOTW_Field is HAL.UInt3;
subtype IRQ_SETUP_1_HOUR_Field is HAL.UInt5;
subtype IRQ_SETUP_1_MIN_Field is HAL.UInt6;
type IRQ_SETUP_1_Register is record
SEC : IRQ_SETUP_1_SEC_Field := 16#0#;
Reserved_6_7 : HAL.UInt2 := 16#0#;
MIN : IRQ_SETUP_1_MIN_Field := 16#0#;
Reserved_14_15 : HAL.UInt2 := 16#0#;
HOUR : IRQ_SETUP_1_HOUR_Field := 16#0#;
Reserved_21_23 : HAL.UInt3 := 16#0#;
DOTW : IRQ_SETUP_1_DOTW_Field := 16#0#;
Reserved_27_27 : HAL.Bit := 16#0#;
SEC_ENA : Boolean := False;
MIN_ENA : Boolean := False;
HOUR_ENA : Boolean := False;
DOTW_ENA : Boolean := False;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype IRQ_SETUP_1_SEC_Field is HAL.UInt6;
subtype RTC_0_DOTW_Field is HAL.UInt3;
subtype RTC_0_HOUR_Field is HAL.UInt5;
subtype RTC_0_MIN_Field is HAL.UInt6;
type RTC_0_Register is record
SEC : RTC_0_SEC_Field;
Reserved_6_7 : HAL.UInt2;
MIN : RTC_0_MIN_Field;
Reserved_14_15 : HAL.UInt2;
HOUR : RTC_0_HOUR_Field;
Reserved_21_23 : HAL.UInt3;
DOTW : RTC_0_DOTW_Field;
Reserved_27_31 : HAL.UInt5;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype RTC_0_SEC_Field is HAL.UInt6;
subtype RTC_1_DAY_Field is HAL.UInt5;
subtype RTC_1_MONTH_Field is HAL.UInt4;
type RTC_1_Register is record
DAY : RTC_1_DAY_Field;
Reserved_5_7 : HAL.UInt3;
MONTH : RTC_1_MONTH_Field;
YEAR : RTC_1_YEAR_Field;
Reserved_24_31 : HAL.UInt8;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype RTC_1_YEAR_Field is HAL.UInt12;
RTC_Periph : aliased RTC_Peripheral
with Import, Address => RTC_Base;
type RTC_Peripheral is record
CLKDIV_M1 : aliased CLKDIV_M1_Register;
SETUP_0 : aliased SETUP_0_Register;
SETUP_1 : aliased SETUP_1_Register;
CTRL : aliased CTRL_Register;
IRQ_SETUP_0 : aliased IRQ_SETUP_0_Register;
IRQ_SETUP_1 : aliased IRQ_SETUP_1_Register;
RTC_1 : aliased RTC_1_Register;
RTC_0 : aliased RTC_0_Register;
INTR : aliased INTR_Register;
INTE : aliased INTE_Register;
INTF : aliased INTF_Register;
INTS : aliased INTS_Register;
end record
with Volatile;
subtype SETUP_0_DAY_Field is HAL.UInt5;
subtype SETUP_0_MONTH_Field is HAL.UInt4;
type SETUP_0_Register is record
DAY : SETUP_0_DAY_Field := 16#0#;
Reserved_5_7 : HAL.UInt3 := 16#0#;
MONTH : SETUP_0_MONTH_Field := 16#0#;
YEAR : SETUP_0_YEAR_Field := 16#0#;
Reserved_24_31 : HAL.UInt8 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype SETUP_0_YEAR_Field is HAL.UInt12;
subtype SETUP_1_DOTW_Field is HAL.UInt3;
subtype SETUP_1_HOUR_Field is HAL.UInt5;
subtype SETUP_1_MIN_Field is HAL.UInt6;
type SETUP_1_Register is record
SEC : SETUP_1_SEC_Field := 16#0#;
Reserved_6_7 : HAL.UInt2 := 16#0#;
MIN : SETUP_1_MIN_Field := 16#0#;
Reserved_14_15 : HAL.UInt2 := 16#0#;
HOUR : SETUP_1_HOUR_Field := 16#0#;
Reserved_21_23 : HAL.UInt3 := 16#0#;
DOTW : SETUP_1_DOTW_Field := 16#0#;
Reserved_27_31 : HAL.UInt5 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype SETUP_1_SEC_Field is HAL.UInt6;