summaryrefslogtreecommitdiff
path: root/linker_script.ld
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-12-13 16:45:49 -0700
committerJosh Rahm <joshuarahm@gmail.com>2022-12-13 16:45:49 -0700
commit540e0316aa425a8fbd126d31350dbe51fca92791 (patch)
treeabc938b9b9f21b7d2357a18272d84c263d767142 /linker_script.ld
parent8bb2d168044213ce9bd31a19efb6bab90f5c9722 (diff)
downloadstm32l4-rust-540e0316aa425a8fbd126d31350dbe51fca92791.tar.gz
stm32l4-rust-540e0316aa425a8fbd126d31350dbe51fca92791.tar.bz2
stm32l4-rust-540e0316aa425a8fbd126d31350dbe51fca92791.zip
Experimental Gpio.HEADmaster
This rapidly blinks the sysled on the stm32. This shows the ability to manipulate memory mapped registers.
Diffstat (limited to 'linker_script.ld')
-rw-r--r--linker_script.ld3
1 files changed, 3 insertions, 0 deletions
diff --git a/linker_script.ld b/linker_script.ld
index 8ae98d0..347a8c4 100644
--- a/linker_script.ld
+++ b/linker_script.ld
@@ -7,6 +7,9 @@ MEMORY
SECTIONS
{
+ __Periph_base = 0x40000000;
+ __Pwr_base = __Periph_base + 0x7000;
+
/* By default the start of the stack is at the top of sram1. */
PROVIDE(_stack_start = ORIGIN(sram1) + LENGTH(sram1));