1.hal_uart.h
添加
#define HAL_UART_BR_4800 0x05
2.mt_uart.h
修改
#define MT_UART_DEFAULT_BAUDRATE HAL_UART_BR_4800
3._hal_uart_dma.c
修改static void HalUARTOpenDMA(halUARTCfg_t *config) 函数
HAL_UART_ASSERT((config->baudRate == HAL_UART_BR_9600) || (config->baudRate == HAL_UART_BR_19200) || (config->baudRate == HAL_UART_BR_38400) || (config->baudRate == HAL_UART_BR_57600) || (config->baudRate == HAL_UART_BR_115200) || (config->baudRate == HAL_UART_BR_4800));
添加
case HAL_UART_BR_4800: UxGCR = 7; dmaCfg.txTick = 69; break;