From 81317c02ab3c33e820fe4852c053476a33c6f834 Mon Sep 17 00:00:00 2001 From: TitanMKD Date: Mon, 25 Jun 2012 22:12:00 +0200 Subject: * Updated GPIO added gpio_toggle() function. * Fixed ROM to RAM Linker script (libopencm3_lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld). --- lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld') diff --git a/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld b/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld index 850218b..0270ea8 100644 --- a/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld +++ b/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld @@ -36,7 +36,7 @@ SECTIONS .text : { . = ALIGN(0x400); - _text_ram = . + ORIGIN(ram); /* Start of Code in RAM */ + _text_ram = (. - ORIGIN(rom)) + ORIGIN(ram); /* Start of Code in RAM */ *(.vectors) /* Vector table */ *(.text*) /* Program code */ @@ -53,8 +53,8 @@ SECTIONS __exidx_end = .; _etext = .; - _etext_ram = . + ORIGIN(ram); - _etext_rom = . + ORIGIN(rom_flash); + _etext_ram = (. - ORIGIN(rom)) + ORIGIN(ram); + _etext_rom = (. - ORIGIN(rom)) + ORIGIN(rom_flash); .data : { _data = .; -- cgit v1.2.3