]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - keyboard/stm32_f103_onekey/ld/STM32F103x8.ld
Add generic STM32F103C8T6 example.
[max/tmk_keyboard.git] / keyboard / stm32_f103_onekey / ld / STM32F103x8.ld
diff --git a/keyboard/stm32_f103_onekey/ld/STM32F103x8.ld b/keyboard/stm32_f103_onekey/ld/STM32F103x8.ld
new file mode 100644 (file)
index 0000000..5410537
--- /dev/null
@@ -0,0 +1,53 @@
+/*\r
+    ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio.\r
+\r
+    This file is part of ChibiOS.\r
+\r
+    ChibiOS is free software; you can redistribute it and/or modify\r
+    it under the terms of the GNU General Public License as published by\r
+    the Free Software Foundation; either version 3 of the License, or\r
+    (at your option) any later version.\r
+\r
+    ChibiOS is distributed in the hope that it will be useful,\r
+    but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+    GNU General Public License for more details.\r
+\r
+    You should have received a copy of the GNU General Public License\r
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
+*/\r
+\r
+/*\r
+ * ST32F103xB memory setup.\r
+ */\r
+MEMORY\r
+{\r
+    flash : org = 0x08000000, len = 64k\r
+    ram0  : org = 0x20000000, len = 20k\r
+    ram1  : org = 0x00000000, len = 0\r
+    ram2  : org = 0x00000000, len = 0\r
+    ram3  : org = 0x00000000, len = 0\r
+    ram4  : org = 0x00000000, len = 0\r
+    ram5  : org = 0x00000000, len = 0\r
+    ram6  : org = 0x00000000, len = 0\r
+    ram7  : org = 0x00000000, len = 0\r
+}\r
+\r
+/* RAM region to be used for Main stack. This stack accommodates the processing\r
+   of all exceptions and interrupts*/\r
+REGION_ALIAS("MAIN_STACK_RAM", ram0);\r
+\r
+/* RAM region to be used for the process stack. This is the stack used by\r
+   the main() function.*/\r
+REGION_ALIAS("PROCESS_STACK_RAM", ram0);\r
+\r
+/* RAM region to be used for data segment.*/\r
+REGION_ALIAS("DATA_RAM", ram0);\r
+\r
+/* RAM region to be used for BSS segment.*/\r
+REGION_ALIAS("BSS_RAM", ram0);\r
+\r
+/* RAM region to be used for the default heap.*/\r
+REGION_ALIAS("HEAP_RAM", ram0);\r
+\r
+INCLUDE rules.ld\r