diff --git a/srv/debug.c b/srv/debug.c index dcd1d21..42dd9a6 100644 --- a/srv/debug.c +++ b/srv/debug.c @@ -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);