sabik-cpu/firmware/adc.h
2021-03-02 20:21:18 +01:00

17 lines
335 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();
void adc_start();
#endif