sabik-cpu/firmware/adc.h

17 lines
335 B
C
Raw Permalink Normal View History

2021-02-23 19:05:43 +01:00
#ifndef _ADC_H
#define _ADC_H
#define ADC_F_TIM 50000000
2021-03-01 19:11:56 +01:00
#define ADC_SAMPLE_RATE (40000)
2021-02-23 19:05:43 +01:00
#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();
2021-03-02 20:21:18 +01:00
void adc_start();
2021-02-23 19:05:43 +01:00
#endif