aboutsummaryrefslogtreecommitdiffstats
path: root/sw/deps/hd44780-driver/examples/metro_m0/.cargo/config
diff options
context:
space:
mode:
Diffstat (limited to 'sw/deps/hd44780-driver/examples/metro_m0/.cargo/config')
-rw-r--r--sw/deps/hd44780-driver/examples/metro_m0/.cargo/config13
1 files changed, 13 insertions, 0 deletions
diff --git a/sw/deps/hd44780-driver/examples/metro_m0/.cargo/config b/sw/deps/hd44780-driver/examples/metro_m0/.cargo/config
new file mode 100644
index 0000000..ce9679d
--- /dev/null
+++ b/sw/deps/hd44780-driver/examples/metro_m0/.cargo/config
@@ -0,0 +1,13 @@
+# samd21 is a Cortex-M0 and thus thumbv6m
+
+[build]
+target = "thumbv6m-none-eabi"
+
+[target.thumbv6m-none-eabi]
+runner = 'arm-none-eabi-gdb'
+rustflags = [
+ "-C", "link-arg=-Tlink.x",
+ "-C", "linker=lld",
+ "-Z", "linker-flavor=ld.lld",
+ "-Z", "thinlto=no",
+] \ No newline at end of file