From e16515bb643b9329318809ecc134f74c22a86382 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 13 Nov 2018 21:45:24 +0900 Subject: Pairing and passthrough mostly working, except it's too slow --- src/packet_interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/packet_interface.c') diff --git a/src/packet_interface.c b/src/packet_interface.c index 9c0ea5c..319ddd1 100644 --- a/src/packet_interface.c +++ b/src/packet_interface.c @@ -25,10 +25,11 @@ struct dma_usart_file usart2_out_s = { struct dma_usart_file *usart2_out = &usart2_out_s; void dma1_stream6_isr(void) { + static unsigned int fifo_errors = 0; /* debug */ if (dma_get_interrupt_flag(usart2_out->dma, usart2_out->stream, DMA_FEIF)) { /* Ignore FIFO errors as they're 100% non-critical for UART applications */ dma_clear_interrupt_flags(usart2_out->dma, usart2_out->stream, DMA_FEIF); - LOG_PRINTF("USART2 DMA FIFO error\n"); + fifo_errors++; return; } -- cgit