aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/memorymap.h
diff options
context:
space:
mode:
authorFergus Noble2011-09-14 13:47:33 -0700
committerStephen Caudle2011-10-12 22:13:01 -0400
commit4eff339e8caae6a16b3650343de483201d4ca490 (patch)
tree6bb1327a1cd95ab2a6223ce7b772b2d7f5312321 /include/libopencm3/stm32/memorymap.h
parent0d4931f91feba0f2e99b58b6b18345696e390b7a (diff)
Restructuring stm32 include directories.
Diffstat (limited to 'include/libopencm3/stm32/memorymap.h')
-rw-r--r--include/libopencm3/stm32/memorymap.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/memorymap.h b/include/libopencm3/stm32/memorymap.h
new file mode 100644
index 0000000..17a919e
--- /dev/null
+++ b/include/libopencm3/stm32/memorymap.h
@@ -0,0 +1,33 @@
+/*
+ * This file is part of the libopencm3 project.
+ *
+ * Copyright (C) 2011 Fergus Noble <fergusnoble@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef LIBOPENCM3_MEMORYMAP_COMMON_H
+#define LIBOPENCM3_MEMORYMAP_COMMON_H
+
+#ifdef STM32F1
+#include <libopencm3/stm32f1/memorymap.h>
+#else
+#ifdef STM32F1
+#include <libopencm3/stm32f2/memorymap.h>
+#else
+#error "stm32 family not defined."
+#endif
+#endif
+
+#endif