aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/l1/memorymap.h
diff options
context:
space:
mode:
authorKen Sarkies2012-12-05 15:36:44 +1030
committerKen Sarkies2013-01-08 19:48:52 +1030
commit7ec382c7d5dfdc868ab52501bebf02eb23a416a0 (patch)
tree566f06249513f04f5c88ba9b6301f56f27538dd1 /include/libopencm3/stm32/l1/memorymap.h
parent4d234c7e27fad516f1a34698099982d7e9ced260 (diff)
STM32: Moved SPI code into the common area.
Updated the documentation so that it appears in all families Also added it to the L1 area, but is untested. An addition to the memorymap allows commonality and a #ifdef added to the spi_common_all code to exclude the case of SPI3 for L1 and F0 as SPI3 doesn't exist in those. An rcc dispatch header was added to remove same code from the spi header.
Diffstat (limited to 'include/libopencm3/stm32/l1/memorymap.h')
-rw-r--r--include/libopencm3/stm32/l1/memorymap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/l1/memorymap.h b/include/libopencm3/stm32/l1/memorymap.h
index 950dd18..d89dbd6 100644
--- a/include/libopencm3/stm32/l1/memorymap.h
+++ b/include/libopencm3/stm32/l1/memorymap.h
@@ -105,4 +105,9 @@
#define DESIG_FLASH_SIZE_BASE (INFO_BASE + 0x8004C)
#define DESIG_UNIQUE_ID_BASE (INFO_BASE + 0x80050)
+/* Make the map names match those for other families to allow commonality */
+#define SPI1_I2S_BASE SPI1_BASE
+#define SPI2_I2S_BASE SPI2_BASE
+#define SPI3_I2S_BASE SPI3_BASE
+
#endif