diff options
author | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-03-17 17:20:43 +0100 |
---|---|---|
committer | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-03-17 17:20:43 +0100 |
commit | 80de5c2e24056d38e49c4aeff4f84a299165d933 (patch) | |
tree | dafe4bb88ca5e40ab87a88aab1335dcd52989be1 /controller/fw/src/adc.c | |
parent | 9d72724ca5fc130448ba0e93b5e46ed83f419d85 (diff) | |
download | master-thesis-80de5c2e24056d38e49c4aeff4f84a299165d933.tar.gz master-thesis-80de5c2e24056d38e49c4aeff4f84a299165d933.tar.bz2 master-thesis-80de5c2e24056d38e49c4aeff4f84a299165d933.zip |
Debugging signal capture subsystem
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(); } |