From 4f720ba83341b17dd6aea0e613878e6928505b00 Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Mon, 15 Jun 2020 14:24:30 +0100 Subject: moar --- app/i2c_hw.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/i2c_hw.c') diff --git a/app/i2c_hw.c b/app/i2c_hw.c index 59d2451..a17c564 100644 --- a/app/i2c_hw.c +++ b/app/i2c_hw.c @@ -229,6 +229,12 @@ i2cp1_dma_in_progress (void) return ! (DMA1_ISR & (DMA_ISR_TCIF6 | DMA_ISR_TEIF6)); } +int +i2cp2_dma_in_progress (void) +{ + return ! (DMA1_ISR & (DMA_ISR_TCIF4 | DMA_ISR_TEIF4)); +} + void i2cp1_stop_dma (void) { -- cgit v1.2.3