[adc] Use StdPeriph lib instead of direct reg access

This commit is contained in:
Raphael Coeffic
2021-07-31 18:46:37 +02:00
parent 704c03a422
commit cf480b03a3
5 changed files with 271 additions and 90 deletions
+1
View File
@@ -318,6 +318,7 @@
#define ADC_CHANNEL_EXT1 ADC_Channel_6 // ADC3_IN6
#define ADC_CHANNEL_EXT2 ADC_Channel_7 // ADC3_IN7
#define ADC_MAIN ADC3
#define ADC_EXT ADC1
#define ADC_SAMPTIME 3
#define ADC_DMA DMA2
#define ADC_DMA_SxCR_CHSEL DMA_SxCR_CHSEL_1