Debugging signal capture subsystem
This commit is contained in:
parent
9d72724ca5
commit
80de5c2e24
6 changed files with 300 additions and 6 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue