stm32g0: add adc.

v2 "single" peripheral with a couple of tweaks :
 - added registers to configure two additionnal advanced analog watchdog.
 - different adc sampling time time based on channel groups.
 - 8 steps adc sequence injection, using chselr/chselrmode.

And a note on the rm explaining that after every configuration change to ADC_CFGR1's
SCANDIR or CHSELRMOD or CHSELR register, user need to check that configuration
is applied before any other modification / adc conversion start.. making adc_set_reqular
a bit painfull to read..
This commit is contained in:
Guillaume Revaillot
2019-01-21 15:36:49 +01:00
committed by Karl Palsson
parent a34da53c30
commit 38b45c8786
4 changed files with 534 additions and 1 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ TGT_CFLAGS += $(DEBUG_FLAGS)
TGT_CFLAGS += $(STANDARD_FLAGS)
ARFLAGS = rcs
OBJS += adc.o adc_common_v2.o
OBJS += crc_common_all.o
OBJS += dma_common_l1f013.o
OBJS += dmamux.o