diff options
Diffstat (limited to 'controller/fw/src/adc.c')
-rw-r--r-- | controller/fw/src/adc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/controller/fw/src/adc.c b/controller/fw/src/adc.c index 81f5ac1..027fd11 100644 --- a/controller/fw/src/adc.c +++ b/controller/fw/src/adc.c @@ -6,6 +6,7 @@ #include "adc.h" #include "sr_global.h" +static unsigned int adc_overruns = 0; uint16_t adc_fft_buf[2][FMEAS_FFT_LEN]; volatile int adc_fft_buf_ready_idx = -1; @@ -93,6 +94,7 @@ void DMA2_Stream0_IRQHandler(void) { GPIOA->BSRR = 1<<11<<16; /* clear all flags */ adc_dma->LIFCR = isr<<DMA_LISR_FEIF0_Pos; + adc_overruns++; return; panic(); } |