Update debug baurate to work with default clock
This commit is contained in:
parent
c4358a7c28
commit
b032890a2c
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
static uint32_t write_debug(uint8_t c, void* arg);
|
static uint32_t write_debug(uint8_t c, void* arg);
|
||||||
|
|
||||||
|
#define DEBUG_BAUDRATE 115200
|
||||||
#define BUFFER_SIZE 162 //(80 char line + \n) * 2
|
#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_configure(tx_port, tx_pin, GPIO_MODE_OUTPUT_FAST,
|
||||||
GPIO_CONFIG_OUT_ALT_PUSH_PULL);
|
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_mbuf_configure(&mbuf,usart_configure_tx_dma(usart),
|
||||||
DMA_CONFIG_PRIO_LOW, tx_buffer, BUFFER_SIZE);
|
DMA_CONFIG_PRIO_LOW, tx_buffer, BUFFER_SIZE);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user