Added alternate function inits for USART

This commit is contained in:
2025-09-07 21:30:32 -07:00
parent 84ab921291
commit b2c41e2cb4
21 changed files with 182 additions and 70 deletions

View File

@@ -17,6 +17,11 @@ void tim2Handler(){
}
int main() {
UART uart2 = initUART(UART_Pair::Tx2A2_Rx2A3);
uart2.begin(115200);
RCC->AHBENR |= RCC_AHBENR_GPIOBEN;
Timer timer2 = getTimer(Timer_Key::S_TIM2);
@@ -43,5 +48,6 @@ int main() {
while (true) {
__WFI();
uart2.sendString("Hello\r\n");
}
}