stm32: unify bulk of adc convenience functions

This unifies stm32f1, l1, and f4 convenience functions for adc.  The code
should be useable for f2 and f37x as well, but that needs hardware for testing,
and there was no existing implementation. This is the reason for the
"adc_common_v1.c" name, as trying to put all the different families into the
common file name has become too cumbersome.

All of the deprecated routines have been dropped, they've been marked
deprecated for a very long time now, and porting them seemed unnecessary.

This has been tested on f1, l1 and f4 discovery boards, and is based on some
existing l1/f1 unification code from
https://github.com/karlp/libopencm3/tree/rme_l1_master
This commit is contained in:
Karl Palsson
2014-01-04 10:58:44 +00:00
committed by Karl Palsson
parent 3eaeaf693c
commit 27bc12de61
11 changed files with 1037 additions and 1417 deletions

View File

@@ -33,7 +33,7 @@ CFLAGS = -Os -g \
# ARFLAGS = rcsv
ARFLAGS = rcs
OBJS = adc.o can.o desig.o ethernet.o flash.o gpio.o \
OBJS = adc.o adc_common_v1.o can.o desig.o ethernet.o flash.o gpio.o \
rcc.o rtc.o timer.o
OBJS += crc_common_all.o dac_common_all.o dma_common_l1f013.o \