>< DAC > Digital_to_Analog_Convertors, ADC > Analog_to_Digital_Convertors
This commit is contained in:
parent
54d35ea285
commit
b209dce12e
|
@ -1,4 +1,4 @@
|
|||
package STM32.ADC with Pure is
|
||||
package STM32.Analog_to_Digital_Convertors with Pure is
|
||||
|
||||
-- SR
|
||||
|
||||
|
@ -524,4 +524,4 @@ package STM32.ADC with Pure is
|
|||
CDR at 16#08# range 0 .. 31;
|
||||
end record;
|
||||
|
||||
end STM32.ADC;
|
||||
end STM32.Analog_to_Digital_Convertors;
|
|
@ -1,21 +1,21 @@
|
|||
package STM32.DAC with Pure is
|
||||
package STM32.Digital_to_Analog_Convertors with Pure is
|
||||
-- Correspondence in register names
|
||||
-- DHR12Rx -- DHR (x).DHR12R
|
||||
-- DHR12Lx -- DHR (x).DHR12L
|
||||
-- DHR8Rx -- DHR (x).DHR8R
|
||||
|
||||
-- Correspondence in field names
|
||||
-- ENx -- C (x).EN
|
||||
-- BOFFx -- C (x).EN
|
||||
-- TENx -- C (x).EN
|
||||
-- TSELx -- C (x).EN
|
||||
-- WAVEx -- C (x).EN
|
||||
-- MAMPx -- C (x).MAMP
|
||||
-- DMAENx -- C (x).DMAEN
|
||||
-- DMAUDRIEx -- C (x).DMAUDRIE
|
||||
-- DACCxDHR -- (x) (12-bit)
|
||||
-- DACCxHDR -- DACCHDR (x) (8-bit)
|
||||
-- DMAUDRx -- (x).DMAUDR
|
||||
-- ENx -- CR (x).EN
|
||||
-- BOFFx -- CR (x).BOFF
|
||||
-- TENx -- CR (x).TEN
|
||||
-- TSELx -- CR (x).TSEL
|
||||
-- WAVEx -- CR (x).WAVE
|
||||
-- MAMPx -- CR (x).MAMP
|
||||
-- DMAENx -- CR (x).DMAEN
|
||||
-- DMAUDRIEx -- CR (x).DMAUDRIE
|
||||
-- DACCxDHR -- DHR12* (x) (12-bit)
|
||||
-- DACCxHDR -- DHR8RD.DACCHDR (x) (8-bit)
|
||||
-- DMAUDRx -- SR (x).DMAUDR
|
||||
|
||||
-- CR
|
||||
|
||||
|
@ -173,4 +173,4 @@ package STM32.DAC with Pure is
|
|||
SR at 16#34# range 0 .. 31;
|
||||
end record;
|
||||
|
||||
end STM32.DAC;
|
||||
end STM32.Digital_to_Analog_Convertors;
|
|
@ -1,21 +0,0 @@
|
|||
with System.Storage_Elements;
|
||||
with STM32.Address_Map;
|
||||
with STM32.ADC;
|
||||
|
||||
package STM32.F407.ADC is
|
||||
|
||||
package Base renames STM32.ADC;
|
||||
|
||||
ADC1 : Base.ADC_Registers with Volatile, Import,
|
||||
Address => System.Storage_Elements.To_Address (STM32.Address_Map.ADC1);
|
||||
|
||||
ADC2 : Base.ADC_Registers with Volatile, Import,
|
||||
Address => System.Storage_Elements.To_Address (STM32.Address_Map.ADC2);
|
||||
|
||||
ADC3 : Base.ADC_Registers with Volatile, Import,
|
||||
Address => System.Storage_Elements.To_Address (STM32.Address_Map.ADC3);
|
||||
|
||||
ADC_Common : Base.Common_ADC_Registers with Volatile, Import,
|
||||
Address => System.Storage_Elements.To_Address (STM32.Address_Map.ADC_Common);
|
||||
|
||||
end STM32.F407.ADC;
|
|
@ -0,0 +1,21 @@
|
|||
with System.Storage_Elements;
|
||||
with STM32.Address_Map;
|
||||
with STM32.Analog_to_Digital_Convertors;
|
||||
|
||||
package STM32.F407.Analog_to_Digital_Convertors is
|
||||
|
||||
package ADC_Base renames STM32.Analog_to_Digital_Convertors;
|
||||
|
||||
ADC1 : ADC_Base.ADC_Registers with Volatile, Import,
|
||||
Address => System.Storage_Elements.To_Address (STM32.Address_Map.ADC1);
|
||||
|
||||
ADC2 : ADC_Base.ADC_Registers with Volatile, Import,
|
||||
Address => System.Storage_Elements.To_Address (STM32.Address_Map.ADC2);
|
||||
|
||||
ADC3 : ADC_Base.ADC_Registers with Volatile, Import,
|
||||
Address => System.Storage_Elements.To_Address (STM32.Address_Map.ADC3);
|
||||
|
||||
ADC_Common : ADC_Base.Common_ADC_Registers with Volatile, Import,
|
||||
Address => System.Storage_Elements.To_Address (STM32.Address_Map.ADC_Common);
|
||||
|
||||
end STM32.F407.Analog_to_Digital_Convertors;
|
|
@ -1,3 +0,0 @@
|
|||
with STM32.F407.ADC;
|
||||
|
||||
package STM32.F429.ADC renames STM32.F407.ADC;
|
|
@ -0,0 +1,3 @@
|
|||
with STM32.F407.Analog_to_Digital_Convertors;
|
||||
|
||||
package STM32.F429.Analog_to_Digital_Convertors renames STM32.F407.Analog_to_Digital_Convertors;
|
|
@ -1,12 +0,0 @@
|
|||
with System.Storage_Elements;
|
||||
with STM32.Address_Map;
|
||||
with STM32.DAC;
|
||||
|
||||
package STM32.F429.DAC is
|
||||
|
||||
package Base renames STM32.DAC;
|
||||
|
||||
DAC_HW : Base.DAC_Registers with Volatile, Import,
|
||||
Address => System.Storage_Elements.To_Address (STM32.Address_Map.DAC);
|
||||
|
||||
end STM32.F429.DAC;
|
|
@ -0,0 +1,12 @@
|
|||
with System.Storage_Elements;
|
||||
with STM32.Address_Map;
|
||||
with STM32.Digital_to_Analog_Convertors;
|
||||
|
||||
package STM32.F429.Digital_to_Analog_Convertors is
|
||||
|
||||
package DAC_Base renames STM32.Digital_to_Analog_Convertors;
|
||||
|
||||
DAC : DAC_Base.DAC_Registers with Volatile, Import,
|
||||
Address => System.Storage_Elements.To_Address (STM32.Address_Map.DAC);
|
||||
|
||||
end STM32.F429.Digital_to_Analog_Convertors;
|
Loading…
Reference in New Issue