Update debug baurate to work with default clock

This commit is contained in:
Steins7 2024-11-03 22:36:20 +01:00
parent c4358a7c28
commit b032890a2c

View File

@ -18,6 +18,7 @@
static uint32_t write_debug(uint8_t c, void* arg);
#define DEBUG_BAUDRATE 115200
#define BUFFER_SIZE 162 //(80 char line + \n) * 2
@ -34,7 +35,7 @@ void _debug_init(enum UsartPeriph usart, enum GpioPort tx_port,
{
gpio_configure(tx_port, tx_pin, GPIO_MODE_OUTPUT_FAST,
GPIO_CONFIG_OUT_ALT_PUSH_PULL);
usart_configure(usart, USART_CONFIG_8N1, 1000000);
usart_configure(usart, USART_CONFIG_8N1, DEBUG_BAUDRATE);
dma_mbuf_configure(&mbuf,usart_configure_tx_dma(usart),
DMA_CONFIG_PRIO_LOW, tx_buffer, BUFFER_SIZE);