16 lines
317 B
C
16 lines
317 B
C
#ifndef _ADC_H
|
|
#define _ADC_H
|
|
|
|
#define ADC_F_TIM 50000000
|
|
#define ADC_SAMPLE_RATE (40000)
|
|
|
|
|
|
#define ADC_RX_DMA_CHANNEL DMA_Channel_0
|
|
#define ADC_RX_DMA_STREAM DMA2_Stream0
|
|
#define ADC_RX_DMA_IRQn DMA2_Stream0_IRQn
|
|
// TODO: Update the IRQ handler in adc.c when updating the stream / channel.
|
|
|
|
void adc_init();
|
|
|
|
#endif
|