Add usart.{h, c}

This commit is contained in:
Alexander Heldt
2025-01-01 12:30:57 +01:00
parent 992b3c5b97
commit 95455a7161
18 changed files with 9159 additions and 478 deletions

View File

@@ -2085,6 +2085,9 @@ struct rcc {
#define RCC_APB1ENR_PWREN_BIT 28
#define RCC_APB1ENR_PWREN_CLOCK_ENABLE (1 << RCC_APB1ENR_PWREN_BIT)
#define RCC_APB1ENR_USART2EN_BIT 17
#define RCC_APB1ENR_USART2EN_ENABLE (1 << RCC_APB1ENR_USART2EN_BIT)
#define RCC_APB1ENR_TIM4_BIT 2
#define RCC_APB1ENR_TIM4_ENABLE (1 << RCC_APB1ENR_TIM4_BIT)
# 2 "src/timer.c" 2