diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-09 15:18:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-09 15:18:14 +0000 |
commit | 9b9627f7223c6f2e20afaf57a340d8e4d3370aec (patch) | |
tree | 0198d42f9f3d0fe94efdb7ad9740f0f14adf3177 /nuttx/configs/mcu123-lpc214x/nsh | |
parent | c9a7d81146415e62614b4d18d3b8e7145e0f18a7 (diff) | |
download | px4-nuttx-9b9627f7223c6f2e20afaf57a340d8e4d3370aec.tar.gz px4-nuttx-9b9627f7223c6f2e20afaf57a340d8e4d3370aec.tar.bz2 px4-nuttx-9b9627f7223c6f2e20afaf57a340d8e4d3370aec.zip |
Add support for fast GPIO on lpc214x
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1766 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/mcu123-lpc214x/nsh')
-rw-r--r-- | nuttx/configs/mcu123-lpc214x/nsh/ld.script | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/nuttx/configs/mcu123-lpc214x/nsh/ld.script b/nuttx/configs/mcu123-lpc214x/nsh/ld.script index 3020fcc49..849f8492e 100644 --- a/nuttx/configs/mcu123-lpc214x/nsh/ld.script +++ b/nuttx/configs/mcu123-lpc214x/nsh/ld.script @@ -33,6 +33,12 @@ * ****************************************************************************/ +MEMORY +{ + flash (rx) : ORIGIN = 0, LENGTH = 500K + ram (rw) : ORIGIN = 0x40000000, LENGTH = 32K - 32 +} + OUTPUT_ARCH(arm) ENTRY(_stext) SECTIONS @@ -42,7 +48,6 @@ SECTIONS * 0x00000000 (default MEMMAP mode assumed) */ - . = 0x00000000; .text : { _stext = ABSOLUTE(.); *(.text) @@ -54,7 +59,7 @@ SECTIONS *(.glue_7t) *(.got) /* Global offset table */ _etext = ABSOLUTE(.); - } + } > flash _eronly = ABSOLUTE(.); /* This is where the .data section * is relocated for execution out * FLASH */ @@ -64,20 +69,22 @@ SECTIONS * to _sdata at boot time. */ - . = 0x40000000; .data : { _sdata = ABSOLUTE(.); *(.data) CONSTRUCTORS _edata = ABSOLUTE(.); - } + } >ram AT>flash + . = ALIGN(32 / 8); .bss : { /* BSS */ _sbss = ABSOLUTE(.); *(.bss) *(COMMON) _ebss = ABSOLUTE(.); } + + . = ALIGN(32 / 8); /* Stabs debugging sections. */ .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) } |