aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmaple/include/libmaple/flash.h5
-rw-r--r--libmaple/stm32f1/include/series/flash.h1
-rw-r--r--libmaple/stm32f2/include/series/flash.h1
3 files changed, 5 insertions, 2 deletions
diff --git a/libmaple/include/libmaple/flash.h b/libmaple/include/libmaple/flash.h
index d84ded1..943e466 100644
--- a/libmaple/include/libmaple/flash.h
+++ b/libmaple/include/libmaple/flash.h
@@ -64,6 +64,11 @@ extern "C"{
*/
#include <series/flash.h>
+#ifdef __DOXYGEN__
+/** Flash register map base pointer. */
+#define FLASH_BASE
+#endif
+
/*
* Flash routines
*/
diff --git a/libmaple/stm32f1/include/series/flash.h b/libmaple/stm32f1/include/series/flash.h
index bb335e7..729cf9a 100644
--- a/libmaple/stm32f1/include/series/flash.h
+++ b/libmaple/stm32f1/include/series/flash.h
@@ -58,7 +58,6 @@ typedef struct flash_reg_map {
__io uint32 WRPR; /**< Write protection register */
} flash_reg_map;
-/** Flash register map base pointer */
#define FLASH_BASE ((struct flash_reg_map*)0x40022000)
/*
diff --git a/libmaple/stm32f2/include/series/flash.h b/libmaple/stm32f2/include/series/flash.h
index 10b8717..f3c650b 100644
--- a/libmaple/stm32f2/include/series/flash.h
+++ b/libmaple/stm32f2/include/series/flash.h
@@ -56,7 +56,6 @@ typedef struct flash_reg_map {
__io uint32 OPTCR; /**< Option control register */
} flash_reg_map;
-/** Flash register map base pointer */
#define FLASH_BASE ((struct flash_reg_map*)0x40023C00)
/*