Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Core/Src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ constinit hydrv::GPIO::GPIOLow direction_pin(hydrv::GPIO::GPIOLow::GPIOA_port,
8,
hydrv::GPIO::GPIOLow::GPIO_Output);

static constexpr hydrv::UART::UARTLow::UARTPreset USART1_115200_LOW{
USART1_BASE,
7,
RCC_APB2ENR_USART1EN,
RCC_BASE + offsetof(RCC_TypeDef, APB2ENR),
USART1_IRQn,
39,
1};
// static constexpr hydrv::UART::UARTLow::UARTPreset USART1_115200_LOW{
// USART1_BASE,
// 7,
// RCC_APB2ENR_USART1EN,
// RCC_BASE + offsetof(RCC_TypeDef, APB2ENR),
// USART1_IRQn,
// 39,
// 1};

constinit hydrv::RS485::RS485<255, 255> RS(USART1_115200_LOW, rx_pin, tx_pin,
direction_pin, 7);
Expand Down
Loading