summaryrefslogtreecommitdiff
path: root/nuttx/configs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-05-20 16:19:01 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-05-20 16:19:01 +0000
commitf943a6e94a7caa69aad320ec610ffb33c8686919 (patch)
tree1351d134abaf1d5a0bf8ef5e88c92fb3b0e2fabe /nuttx/configs
parentbccc2e256e4664cb3010a678722866a71e2fafc5 (diff)
downloadpx4-nuttx-f943a6e94a7caa69aad320ec610ffb33c8686919.tar.gz
px4-nuttx-f943a6e94a7caa69aad320ec610ffb33c8686919.tar.bz2
px4-nuttx-f943a6e94a7caa69aad320ec610ffb33c8686919.zip
Fleshing out PIC32 port
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3632 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs')
-rw-r--r--nuttx/configs/pcblogic-pic32mx/ostest/defconfig18
-rw-r--r--nuttx/configs/pcblogic-pic32mx/ostest/ld.script19
2 files changed, 9 insertions, 28 deletions
diff --git a/nuttx/configs/pcblogic-pic32mx/ostest/defconfig b/nuttx/configs/pcblogic-pic32mx/ostest/defconfig
index 0e74af970..2b2ca4674 100644
--- a/nuttx/configs/pcblogic-pic32mx/ostest/defconfig
+++ b/nuttx/configs/pcblogic-pic32mx/ostest/defconfig
@@ -159,40 +159,26 @@ CONFIG_PIC32MX_IOPORTG=y
# CONFIG_UARTn_PARTIY - 0=no parity, 1=odd parity, 2=even parity
# CONFIG_UARTn_2STOP - Two stop bits
#
-CONFIG_UART0_SERIAL_CONSOLE=n
-CONFIG_UART1_SERIAL_CONSOLE=n
+CONFIG_UART1_SERIAL_CONSOLE=y
CONFIG_UART2_SERIAL_CONSOLE=n
-CONFIG_UART3_SERIAL_CONSOLE=y
-CONFIG_UART0_TXBUFSIZE=256
CONFIG_UART1_TXBUFSIZE=256
CONFIG_UART2_TXBUFSIZE=256
-CONFIG_UART3_TXBUFSIZE=256
-CONFIG_UART0_RXBUFSIZE=256
CONFIG_UART1_RXBUFSIZE=256
CONFIG_UART2_RXBUFSIZE=256
-CONFIG_UART3_RXBUFSIZE=256
-CONFIG_UART0_BAUD=115200
-CONFIG_UART2_BAUD=115200
-CONFIG_UART3_BAUD=115200
CONFIG_UART1_BAUD=115200
+CONFIG_UART2_BAUD=115200
-CONFIG_UART0_BITS=8
CONFIG_UART1_BITS=8
CONFIG_UART2_BITS=8
-CONFIG_UART3_BITS=8
-CONFIG_UART0_PARITY=0
CONFIG_UART1_PARITY=0
CONFIG_UART2_PARITY=0
-CONFIG_UART3_PARITY=0
-CONFIG_UART0_2STOP=0
CONFIG_UART1_2STOP=0
CONFIG_UART2_2STOP=0
-CONFIG_UART3_2STOP=0
#
# General build options
diff --git a/nuttx/configs/pcblogic-pic32mx/ostest/ld.script b/nuttx/configs/pcblogic-pic32mx/ostest/ld.script
index 3781cd567..cc37ba521 100644
--- a/nuttx/configs/pcblogic-pic32mx/ostest/ld.script
+++ b/nuttx/configs/pcblogic-pic32mx/ostest/ld.script
@@ -56,8 +56,7 @@ MEMORY
* Others 0x1fc00380 KSEG1 128 1024 (1Kb)
* Interrupt 0x1fc00400 KSEG1 128 1152
* JTAG 0x1fc00480 KSEG1 16 1168
- * Startup logic 0x1fc00490 KSEG0 4096-1168 4096 (4Kb)
- * Exceptions 0x1fc01000 KSEG0 4096 8192 (8Kb)
+ * Exceptions 0x1fc00490 KSEG0 8192-1168 8192 (4Kb)
* Debug code 0x1fc02000 KSEG1 4096-16 12272
* DEVCFG3-0 0x1fc02ff0 KSEG1 16 12288 (12Kb)
*
@@ -73,8 +72,7 @@ MEMORY
kseg1_bevexcpt (rx) : ORIGIN = 0xbfc00380, LENGTH = 128
kseg1_intexcpt (rx) : ORIGIN = 0xbfc00400, LENGTH = 128
kseg1_dbgexcpt (rx) : ORIGIN = 0xbfc00480, LENGTH = 16
- kseg0_bootmem (rx) : ORIGIN = 0x9fc00490, LENGTH = 4096-1168
- kseg0_excptmem (rx) : ORIGIN = 0x9fc01000, LENGTH = 4096
+ kseg0_bootmem (rx) : ORIGIN = 0x9fc00490, LENGTH = 8192-1168
kseg1_dbgcode (rx) : ORIGIN = 0xbfc02000, LENGTH = 4096-16
kseg1_devcfg (r) : ORIGIN = 0xbfc02ff0, LENGTH = 16
@@ -90,9 +88,6 @@ OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mx)
ENTRY(__start)
-INPUT(up_inthandler.o);
-INPUT(up_bevhandler.o);
-
SECTIONS
{
/* Boot FLASH sections */
@@ -135,16 +130,16 @@ SECTIONS
.start :
{
+ /* KSEG0 Reset startup logic */
+
*(.start)
- } > kseg0_bootmem
- /* KSEG0 exception handlers */
+ /* KSEG0 exception handlers */
- .excpt_handlers :
- {
+ *(.nmi_handler)
*(.bev_handler)
*(.int_handler)
- } > kseg0_excptmem
+ } > kseg0_bootmem
.dbg_code = ORIGIN(kseg1_dbgcode);