------------- Registers -- -------------
UART0_Periph : aliased UART_Peripheral
with Import, Address => UART0_Base;
UART1_Periph : aliased UART_Peripheral
with Import, Address => UART1_Base;
type UART_Peripheral is record
UARTDR : aliased UARTDR_Register;
UARTRSR : aliased UARTRSR_Register;
UARTFR : aliased UARTFR_Register;
UARTILPR : aliased UARTILPR_Register;
UARTIBRD : aliased UARTIBRD_Register;
UARTFBRD : aliased UARTFBRD_Register;
UARTLCR_H : aliased UARTLCR_H_Register;
UARTCR : aliased UARTCR_Register;
UARTIFLS : aliased UARTIFLS_Register;
UARTIMSC : aliased UARTIMSC_Register;
UARTRIS : aliased UARTRIS_Register;
UARTMIS : aliased UARTMIS_Register;
UARTICR : aliased UARTICR_Register;
UARTDMACR : aliased UARTDMACR_Register;
UARTPERIPHID0 : aliased UARTPERIPHID0_Register;
UARTPERIPHID1 : aliased UARTPERIPHID1_Register;
UARTPERIPHID2 : aliased UARTPERIPHID2_Register;
UARTPERIPHID3 : aliased UARTPERIPHID3_Register;
UARTPCELLID0 : aliased UARTPCELLID0_Register;
UARTPCELLID1 : aliased UARTPCELLID1_Register;
UARTPCELLID2 : aliased UARTPCELLID2_Register;
UARTPCELLID3 : aliased UARTPCELLID3_Register;
end record
with Volatile;
type UARTCR_OUT_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
Val : HAL.UInt2;
when True =>
Arr : UARTCR_OUT_Field_Array;
end case;
end record
with Unchecked_Union, Size => 2;
type UARTCR_OUT_Field_Array is array (1 .. 2) of Boolean
with Component_Size => 1, Size => 2;
type UARTCR_Register is record
UARTEN : Boolean := False;
SIREN : Boolean := False;
SIRLP : Boolean := False;
Reserved_3_6 : HAL.UInt4 := 16#0#;
LBE : Boolean := False;
TXE : Boolean := True;
RXE : Boolean := True;
DTR : Boolean := False;
RTS : Boolean := False;
OUT_k : UARTCR_OUT_Field := (As_Array => False, Val => 16#0#);
RTSEN : Boolean := False;
CTSEN : Boolean := False;
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type UARTDMACR_Register is record
RXDMAE : Boolean := False;
TXDMAE : Boolean := False;
DMAONERR : Boolean := False;
Reserved_3_31 : HAL.UInt29 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype UARTDR_DATA_Field is HAL.UInt8;
type UARTDR_Register is record
DATA : UARTDR_DATA_Field := 16#0#;
FE : Boolean := False;
PE : Boolean := False;
BE : Boolean := False;
OE : Boolean := False;
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype UARTFBRD_BAUD_DIVFRAC_Field is HAL.UInt6;
type UARTFBRD_Register is record
BAUD_DIVFRAC : UARTFBRD_BAUD_DIVFRAC_Field := 16#0#;
Reserved_6_31 : HAL.UInt26 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type UARTFR_Register is record
CTS : Boolean;
DSR : Boolean;
DCD : Boolean;
BUSY : Boolean;
RXFE : Boolean;
TXFF : Boolean;
RXFF : Boolean;
TXFE : Boolean;
RI : Boolean;
Reserved_9_31 : HAL.UInt23;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype UARTIBRD_BAUD_DIVINT_Field is HAL.UInt16;
type UARTIBRD_Register is record
BAUD_DIVINT : UARTIBRD_BAUD_DIVINT_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 UARTICR_Register is record
RIMIC : Boolean := False;
CTSMIC : Boolean := False;
DCDMIC : Boolean := False;
DSRMIC : Boolean := False;
RXIC : Boolean := False;
TXIC : Boolean := False;
RTIC : Boolean := False;
FEIC : Boolean := False;
PEIC : Boolean := False;
BEIC : Boolean := False;
OEIC : Boolean := False;
Reserved_11_31 : HAL.UInt21 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type UARTIFLS_Register is record
TXIFLSEL : UARTIFLS_TXIFLSEL_Field := 16#2#;
RXIFLSEL : UARTIFLS_RXIFLSEL_Field := 16#2#;
Reserved_6_31 : HAL.UInt26 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype UARTIFLS_RXIFLSEL_Field is HAL.UInt3;
subtype UARTIFLS_TXIFLSEL_Field is HAL.UInt3;
subtype UARTILPR_ILPDVSR_Field is HAL.UInt8;
type UARTILPR_Register is record
ILPDVSR : UARTILPR_ILPDVSR_Field := 16#0#;
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type UARTIMSC_Register is record
RIMIM : Boolean := False;
CTSMIM : Boolean := False;
DCDMIM : Boolean := False;
DSRMIM : Boolean := False;
RXIM : Boolean := False;
TXIM : Boolean := False;
RTIM : Boolean := False;
FEIM : Boolean := False;
PEIM : Boolean := False;
BEIM : Boolean := False;
OEIM : Boolean := False;
Reserved_11_31 : HAL.UInt21 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type UARTLCR_H_Register is record
BRK : Boolean := False;
PEN : Boolean := False;
EPS : Boolean := False;
STP2 : Boolean := False;
FEN : Boolean := False;
WLEN : UARTLCR_H_WLEN_Field := 16#0#;
SPS : Boolean := False;
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype UARTLCR_H_WLEN_Field is HAL.UInt2;
type UARTMIS_Register is record
RIMMIS : Boolean;
CTSMMIS : Boolean;
DCDMMIS : Boolean;
DSRMMIS : Boolean;
RXMIS : Boolean;
TXMIS : Boolean;
RTMIS : Boolean;
FEMIS : Boolean;
PEMIS : Boolean;
BEMIS : Boolean;
OEMIS : Boolean;
Reserved_11_31 : HAL.UInt21;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type UARTPCELLID0_Register is record
UARTPCELLID0 : UARTPCELLID0_UARTPCELLID0_Field;
Reserved_8_31 : HAL.UInt24;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype UARTPCELLID0_UARTPCELLID0_Field is HAL.UInt8;
type UARTPCELLID1_Register is record
UARTPCELLID1 : UARTPCELLID1_UARTPCELLID1_Field;
Reserved_8_31 : HAL.UInt24;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype UARTPCELLID1_UARTPCELLID1_Field is HAL.UInt8;
type UARTPCELLID2_Register is record
UARTPCELLID2 : UARTPCELLID2_UARTPCELLID2_Field;
Reserved_8_31 : HAL.UInt24;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype UARTPCELLID2_UARTPCELLID2_Field is HAL.UInt8;
type UARTPCELLID3_Register is record
UARTPCELLID3 : UARTPCELLID3_UARTPCELLID3_Field;
Reserved_8_31 : HAL.UInt24;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype UARTPCELLID3_UARTPCELLID3_Field is HAL.UInt8;
subtype UARTPERIPHID0_PARTNUMBER0_Field is HAL.UInt8;
type UARTPERIPHID0_Register is record
PARTNUMBER0 : UARTPERIPHID0_PARTNUMBER0_Field;
Reserved_8_31 : HAL.UInt24;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype UARTPERIPHID1_DESIGNER0_Field is HAL.UInt4;
subtype UARTPERIPHID1_PARTNUMBER1_Field is HAL.UInt4;
type UARTPERIPHID1_Register is record
PARTNUMBER1 : UARTPERIPHID1_PARTNUMBER1_Field;
DESIGNER0 : UARTPERIPHID1_DESIGNER0_Field;
Reserved_8_31 : HAL.UInt24;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype UARTPERIPHID2_DESIGNER1_Field is HAL.UInt4;
type UARTPERIPHID2_Register is record
DESIGNER1 : UARTPERIPHID2_DESIGNER1_Field;
REVISION : UARTPERIPHID2_REVISION_Field;
Reserved_8_31 : HAL.UInt24;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
subtype UARTPERIPHID2_REVISION_Field is HAL.UInt4;
subtype UARTPERIPHID3_CONFIGURATION_Field is HAL.UInt8;
type UARTPERIPHID3_Register is record
CONFIGURATION : UARTPERIPHID3_CONFIGURATION_Field;
Reserved_8_31 : HAL.UInt24;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type UARTRIS_Register is record
RIRMIS : Boolean;
CTSRMIS : Boolean;
DCDRMIS : Boolean;
DSRRMIS : Boolean;
RXRIS : Boolean;
TXRIS : Boolean;
RTRIS : Boolean;
FERIS : Boolean;
PERIS : Boolean;
BERIS : Boolean;
OERIS : Boolean;
Reserved_11_31 : HAL.UInt21;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;
type UARTRSR_Register is record
FE : Boolean := False;
PE : Boolean := False;
BE : Boolean := False;
OE : Boolean := False;
Reserved_4_31 : HAL.UInt28 := 16#0#;
end record
with Volatile_Full_Access, Object_Size => 32,
Bit_Order => System.Low_Order_First;