stm32: Define FLASH_BASE and PERIPH_BASE for all families
FLASH_BASE was already defined for some and PERIPH_BASE for all but one, but this makes these available for all families. Note that the value is identical for all familes (I doublechecked the more exotic ones such STM32H7), but it is still useful to have these defines to make code more readable and so that libopencm3 users can write portable code without having to check that these are identical on all STM32 families.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
/* --- STM32 specific peripheral definitions ------------------------------- */
|
||||
|
||||
/* Memory map for all busses */
|
||||
#define FLASH_BASE (0x08000000U)
|
||||
#define PERIPH_BASE (0x40000000U)
|
||||
#define IOPORT_BASE (0x50000000U)
|
||||
#define INFO_BASE (0x1ff80000U)
|
||||
|
||||
Reference in New Issue
Block a user