diff options
author | jaseg <git@jaseg.net> | 2018-11-13 21:45:24 +0900 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2018-11-13 21:45:24 +0900 |
commit | e16515bb643b9329318809ecc134f74c22a86382 (patch) | |
tree | 30efc4ce885ced6edae4299c3453fa2f28c20926 /src/packet_interface.c | |
parent | 6af635bd41b48da04edd1f70a6851cb3f811cea3 (diff) | |
download | secure-hid-e16515bb643b9329318809ecc134f74c22a86382.tar.gz secure-hid-e16515bb643b9329318809ecc134f74c22a86382.tar.bz2 secure-hid-e16515bb643b9329318809ecc134f74c22a86382.zip |
Pairing and passthrough mostly working, except it's too slow
Diffstat (limited to 'src/packet_interface.c')
-rw-r--r-- | src/packet_interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |