/* * printf.c * * Created on: Sep 5, 2025 * Author: sowgro */ #include #include #include "UART.h" #include "printf.h" char buffer[80]; int printf(const char *format, ...) { va_list args; va_start(args, format); int n = vsprintf(buffer, format, args); va_end(args); USART_Write(USART2, (unsigned char *) buffer, n); return n; }