summaryrefslogtreecommitdiff
path: root/src/stm/registers.ld
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-03-16 20:21:09 -0700
committerKeith Packard <keithp@keithp.com>2012-03-28 21:37:02 -0700
commit9279fd42793123784ce83ca151df6f4630487722 (patch)
tree4aa915f83ee5aafbeda8d6df5c32044684e0acae /src/stm/registers.ld
parente2f13aa43ba79becbff6c9bfc18c665a58d96185 (diff)
Add STM platform and stm-bringup demo program
The stm-bringup doesn't run altos, it just initializes the device and writes stuff over a serial port. Works on the STM32L Discovery board at least, should do stuff on other boards too. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/registers.ld')
-rw-r--r--src/stm/registers.ld47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/stm/registers.ld b/src/stm/registers.ld
new file mode 100644
index 00000000..51921444
--- /dev/null
+++ b/src/stm/registers.ld
@@ -0,0 +1,47 @@
+stm_fsmc = 0xa0000000;
+stm_aes = 0x50060000;
+stm_dma = 0x40026000;
+stm_flash = 0x40023c00;
+stm_rcc = 0x40023800;
+stm_crc = 0x40023000;
+stm_gpioh = 0x40021400;
+stm_gpioe = 0x40021000;
+stm_gpiod = 0x40020c00;
+stm_gpioc = 0x40020800;
+stm_gpiob = 0x40020400;
+stm_gpioa = 0x40020000;
+stm_usart1 = 0x40013800;
+stm_spi1 = 0x40013000;
+stm_sdio = 0x40012c00;
+stm_adc = 0x40012400;
+stm_tim11 = 0x40011000;
+stm_tim10 = 0x40010c00;
+stm_tim9 = 0x40010800;
+stm_exti = 0x40010400;
+stm_syscfg = 0x40010000;
+stm_comp = 0x40007c00;
+stm_ri = 0x40007c04;
+stm_dac = 0x40007400;
+stm_pwr = 0x40007000;
+stm_usb_sram = 0x40006000;
+stm_usb = 0x40005c00;
+stm_i2c2 = 0x40005800;
+stm_i2c1 = 0x40005400;
+stm_usart5 = 0x40005000;
+stm_usart4 = 0x40004c00;
+stm_usart3 = 0x40004800;
+stm_usart2 = 0x40004400;
+stm_spi3 = 0x40003c00; /* docs are broken here */
+stm_spi2 = 0x40003800; /* docs are broken here */
+stm_iwdg = 0x40003000;
+stm_wwdg = 0x40002c00;
+stm_rtc = 0x40002800;
+stm_lcd = 0x40002400;
+stm_tim7 = 0x40001400;
+stm_tim6 = 0x40001000;
+stm_tim5 = 0x40000c00;
+stm_tim4 = 0x40000800;
+stm_tim3 = 0x40000400;
+stm_tim2 = 0x40000000;
+
+stm_nvic = 0xe000e100; \ No newline at end of file