>< renaming USARTS

This commit is contained in:
Vovanium 2024-01-18 17:43:18 +03:00
parent b6d3df1c28
commit df175cd543
5 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
with Chip.USART;
with Chip.USARTs;
package Board.UART is
Port : GPIO_Registers renames GPIOA;
@ -10,7 +10,7 @@ package Board.UART is
AF : Alternate_Function renames Alternate_Functions.USART1;
Module : Chip.USART.USART_Base.USART_Registers renames Chip.USART.USART1;
Module : Chip.USARTs.USART_Base.USART_Registers renames Chip.USARTs.USART1;
RCC_EN : Boolean renames RCC_HW.APB2ENR(Index.USART1);
RCC_RST : Boolean renames RCC_HW.APB2RSTR(Index.USART1);

View File

@ -1,4 +1,4 @@
with Chip.USART;
with Chip.USARTs;
package Board.UART is
@ -11,7 +11,7 @@ package Board.UART is
AF : Alternate_Function renames Alternate_Functions.USART1;
Module : Chip.USART.USART_Base.USART_Registers renames Chip.USART.USART1;
Module : Chip.USARTs.USART_Base.USART_Registers renames Chip.USARTs.USART1;
RCC_EN : Boolean renames RCC_HW.APB2ENR (Index.USART1);
RCC_RST : Boolean renames RCC_HW.APB2RSTR (Index.USART1);

View File

@ -1,7 +1,7 @@
with STM32.GPIO.Ports;
use STM32.GPIO.Ports;
with Chip.USART;
use Chip.USART.USART_Base;
with Chip.USARTs;
use Chip.USARTs.USART_Base;
package body Board.UART.IO is
package TX is new GPIO_Port_Boolean (Port, TX_Bit);

View File

@ -2,7 +2,7 @@ with System.Storage_Elements;
with STM32.Address_Map;
with STM32.USARTs;
package STM32.F407.USART is
package STM32.F407.USARTs is
package USART_Base renames STM32.USARTs;
@ -24,4 +24,4 @@ package STM32.F407.USART is
USART6: aliased USART_Base.USART_Registers with Volatile, Import,
Address => System.Storage_Elements.To_Address(Address_Map.USART6);
end STM32.F407.USART;
end STM32.F407.USARTs;

View File

@ -2,7 +2,7 @@ with System.Storage_Elements;
with STM32.Address_Map;
with STM32.USARTs;
package STM32.F429.USART is
package STM32.F429.USARTs is
package USART_Base renames STM32.USARTs;
@ -30,4 +30,4 @@ package STM32.F429.USART is
UART8: aliased USART_Base.USART_Registers with Volatile, Import,
Address => System.Storage_Elements.To_Address(Address_Map.UART8);
end STM32.F429.USART;
end STM32.F429.USARTs;