aboutsummaryrefslogtreecommitdiff
path: root/examples/other/adc_temperature_sensor/adc.ld
diff options
context:
space:
mode:
authorThomas Otto2010-03-24 20:36:19 +0100
committerThomas Otto2010-03-24 20:36:19 +0100
commit384a7e688e9a306e3d12459f1b24f9dd4d6c2848 (patch)
tree1f2170e43e801d18b28aec1b9aea24ec0cd2ed4e /examples/other/adc_temperature_sensor/adc.ld
parenteb3f45dcdb6c920b5f7bedad47c93386875811f9 (diff)
Added adc_temperature_sensor to examples
Diffstat (limited to 'examples/other/adc_temperature_sensor/adc.ld')
-rw-r--r--examples/other/adc_temperature_sensor/adc.ld31
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/other/adc_temperature_sensor/adc.ld b/examples/other/adc_temperature_sensor/adc.ld
new file mode 100644
index 0000000..a1e9de5
--- /dev/null
+++ b/examples/other/adc_temperature_sensor/adc.ld
@@ -0,0 +1,31 @@
+/*
+ * This file is part of the libopenstm32 project.
+ *
+ * Copyright (C) 2010 Thomas Otto <tommi@viadmin.org>
+ *
+ * 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/>.
+ */
+
+/* Linker script for an STM32F103RBT6 board (128K flash, 20K RAM). */
+
+/* Define memory regions. */
+MEMORY
+{
+ rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K
+ ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
+}
+
+/* Include the common ld script from libopenstm32. */
+INCLUDE libopenstm32.ld
+