stm32: ADC peripheral style 1 header unification

This pulls out all the common header definitions for the F1, L1, F4 and F37x
parts.  It's verified against the datasheet for F2 as well, but we don't have
any good F2 test boards or any support for that yet.  (The F2 header would be
_exactly_ the same as the F4 header, so it's a target for a future round of
unification, not this one)

Tested with f1, f4 and l1 examples from the examples repository.
This commit is contained in:
Karl Palsson
2014-01-03 23:32:25 +00:00
committed by Karl Palsson
parent 06f11df2a9
commit 3eaeaf693c
7 changed files with 587 additions and 469 deletions

View File

@@ -72,6 +72,8 @@
#define TIM11_BASE (PERIPH_BASE_APB2 + 0x1000)
/* gap */
#define ADC_BASE (PERIPH_BASE_APB2 + 0x2400)
/* ADC is the name in the L1 refman, but all other stm32's use ADC1 */
#define ADC1_BASE ADC_BASE
/* gap */
#define SDIO_BASE (PERIPH_BASE_APB2 + 0x2c00)
#define SPI1_BASE (PERIPH_BASE_APB2 + 0x3000)