diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-02 00:59:28 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-02 00:59:28 +0000 |
commit | 5fb6f65ca74421edf5569ce13ee9f9c364b87d02 (patch) | |
tree | d88d85fa390a78eb0815aea74f39bbb5a2b651e1 /nuttx/configs | |
parent | 3c17616fb76eca92cc0daaa56b8769e381c69330 (diff) | |
download | px4-nuttx-5fb6f65ca74421edf5569ce13ee9f9c364b87d02.tar.gz px4-nuttx-5fb6f65ca74421edf5569ce13ee9f9c364b87d02.tar.bz2 px4-nuttx-5fb6f65ca74421edf5569ce13ee9f9c364b87d02.zip |
LPC1788 updates from Rommel Marcelo
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5696 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs')
-rw-r--r-- | nuttx/configs/open1788/include/board.h | 16 | ||||
-rwxr-xr-x | nuttx/configs/open1788/ostest/setenv.sh | 2 | ||||
-rwxr-xr-x | nuttx/configs/open1788/scripts/ld.script | 22 |
3 files changed, 15 insertions, 25 deletions
diff --git a/nuttx/configs/open1788/include/board.h b/nuttx/configs/open1788/include/board.h index 579fb004b..c09bdfc3d 100644 --- a/nuttx/configs/open1788/include/board.h +++ b/nuttx/configs/open1788/include/board.h @@ -85,8 +85,8 @@ * The input to the divider (PLLCLK) will be determined by the PLL output. */ -#define BOARD_CCLKCFG_DIVIDER 6 -#define BOARD_CCLKCFG_VALUE ((BOARD_CCLKCFG_DIVIDER-1) << SYSCON_CCLKCFG_CCLKDIV_SHIFT) +#define BOARD_CCLKCFG_DIVIDER 1 +#define BOARD_CCLKCFG_VALUE (BOARD_CCLKCFG_DIVIDER | SYSCON_CCLKCFG_CCLKSEL) /* PLL0. PLL0 is used to generate the CPU clock (PLLCLK). * @@ -109,11 +109,11 @@ /* PLL1 : PLL1 is used to generate clock for the USB */ - #undef CONFIG_LPC17_PLL1 - #define CONFIG_LPC17_PLL1 1 - #define BOARD_PLL1CFG_MSEL 4 - #define BOARD_PLL1CFG_PSEL 2 - #define BOARD_PLL1CFG_VALUE \ +#undef CONFIG_LPC17_PLL1 +//~ #define CONFIG_LPC17_PLL1 1 +#define BOARD_PLL1CFG_MSEL 4 +#define BOARD_PLL1CFG_PSEL 2 +#define BOARD_PLL1CFG_VALUE \ (((BOARD_PLL1CFG_MSEL-1) << SYSCON_PLLCFG_MSEL_SHIFT) | \ ((BOARD_PLL1CFG_PSEL-1) << SYSCON_PLLCFG_PSEL_SHIFT)) @@ -135,7 +135,7 @@ /* Flash access use 6 CPU clocks - Safe for any allowed conditions */ -#define BOARD_FLASHCFG_VALUE SYSCON_FLASHCFG_TIM_5 +#define BOARD_FLASHCFG_VALUE (SYSCON_FLASHCFG_TIM_5 | 0x03a) /* Ethernet configuration */ diff --git a/nuttx/configs/open1788/ostest/setenv.sh b/nuttx/configs/open1788/ostest/setenv.sh index ecbc9ef1c..88714298e 100755 --- a/nuttx/configs/open1788/ostest/setenv.sh +++ b/nuttx/configs/open1788/ostest/setenv.sh @@ -65,7 +65,7 @@ fi export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin" # The Olimex-lpc1766stk/tools directory -export LPCTOOL_DIR="${WD}/configs/olimex-lpc1766stk/tools" +export LPCTOOL_DIR="${WD}/configs/open1788/tools" # Add the path to the toolchain and tools directory to the PATH varialble export PATH="${TOOLCHAIN_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}" diff --git a/nuttx/configs/open1788/scripts/ld.script b/nuttx/configs/open1788/scripts/ld.script index 8ed9c24c3..78a0e8911 100755 --- a/nuttx/configs/open1788/scripts/ld.script +++ b/nuttx/configs/open1788/scripts/ld.script @@ -37,8 +37,8 @@ /* The LPC1788 has 512Kb of FLASH beginning at address 0x0000:0000 and * 96Kb of total SRAM: 64Kb of SRAM in the CPU block beginning at address * 0x10000000 and 32Kb of Peripheral SRAM in two banks, 8Kb at addresses - * 0x20000000 bank0 first and 8kb at 0x20020000 at bank0 second. And 16Kb - * at 0x20040000 on bank1. + * 0x20000000 bank0 first and 8kb at 0x20002000 at bank0 second. And 16Kb + * at 0x20004000 on bank1. * * Here we assume that .data and .bss will all fit into the 64Kb CPU SRAM * address range. @@ -48,8 +48,9 @@ MEMORY { FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K SRAM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K - PSRAM0 (rwx) : ORIGIN = 0x20000000, LENGTH = 16K /* Peripheral SRAM Bank 0 */ - PSRAM1 (rwx) : ORIGIN = 0x20040000, LENGTH = 16K /* Peripheral SRAM Bank 1 */ + AHBRAM8_B0A(rwx): ORIGIN = 0x20000000, LENGTH = 8K + AHBRAM8_B0B(rwx): ORIGIN = 0x20002000, LENGTH = 8K + AHBRAM16(rwx): ORIGIN = 0x20004000, LENGTH = 16K } OUTPUT_ARCH(arm) @@ -86,6 +87,7 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx*) } > FLASH + __exidx_end = ABSOLUTE(.); _eronly = ABSOLUTE(.); @@ -105,20 +107,8 @@ SECTIONS *(COMMON) _ebss = ABSOLUTE(.); } > SRAM -/* - .psram0 (NOLOAD) : - { - *(.psram0) - . = ALIGN(4) - } > PSRAM0 - .psram1 (NOLOAD) : - { - *(.psram1) - . = ALIGN(4) - } > PSRAM1 -*/ /* Stabs debugging sections */ .stab 0 : { *(.stab) } |