From 9801227da93abb418d12804d2ceb56ce04d90c1d Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Wed, 15 Sep 2021 17:05:36 +0200 Subject: uart: Generate instances from platform spec. --- uart/uart.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 uart/uart.h (limited to 'uart/uart.h') diff --git a/uart/uart.h b/uart/uart.h new file mode 100644 index 0000000..ed680ea --- /dev/null +++ b/uart/uart.h @@ -0,0 +1,12 @@ +#pragma once + +#include "stm32_uart.h" + +constexpr STM32_UART_t USART1{ + 0x40011000, +}; +constexpr STM32_UART_t USART2{ + 0x40004400, +}; + + -- cgit v1.2.3