357
#include "uart.h" void uartx_write(UART_HandleTypeDef *huart, uint8_t ch) { HAL_UART_Transmit(huart, &ch, 1, HAL_MAX_DELAY); } void uartx_write_text(UART_HandleTypeDef *huart, char *info) { HAL_UART_Transmit(huart, (uint8_t *)info, strlen(info), HAL_MAX_DELAY); }