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:
committed by
Karl Palsson
parent
06f11df2a9
commit
3eaeaf693c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user