summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-28 23:40:54 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-28 23:40:54 +0000
commitdfbc56054f377761c50a1a7453ed00a228fa9766 (patch)
tree98593e250fbbfe7f154c8b4edd7a91aa7f43185b /nuttx/arch/arm
parent37e2da3332de942dfb728e7ee8f50cd31c9a2676 (diff)
downloadpx4-nuttx-dfbc56054f377761c50a1a7453ed00a228fa9766.tar.gz
px4-nuttx-dfbc56054f377761c50a1a7453ed00a228fa9766.tar.bz2
px4-nuttx-dfbc56054f377761c50a1a7453ed00a228fa9766.zip
Add board support at configs/zp214xpa for the The0.net ZP213X/4XPA board with the LPC2148; Add configurations sim/nxlines. convert mcu123-lpc214x/nsh to use the kconfig-frontends.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5465 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm')
-rw-r--r--nuttx/arch/arm/src/lpc214x/Kconfig134
1 files changed, 134 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/lpc214x/Kconfig b/nuttx/arch/arm/src/lpc214x/Kconfig
index a26483ed9..5d52eb000 100644
--- a/nuttx/arch/arm/src/lpc214x/Kconfig
+++ b/nuttx/arch/arm/src/lpc214x/Kconfig
@@ -4,3 +4,137 @@
#
comment "LPC214x Configuration Options"
+
+# Fragments of LPC214x chip selection logic. The LPC2148 is the only chip
+# supported for now.
+
+config ARCH_CHIP_LPC2148
+ bool
+ default y
+
+comment "LPC214x Initialization Options"
+
+choice
+ prompt "Memory Execution Mode"
+ default DEFAULT_MODE
+
+config EXTMEM_MODE
+ bool "External Memory Mode"
+ ---help---
+ Code executes from external memory starting at address 0x8000:0000.
+
+config RAM_MODE
+ bool "RAM Memory Mode"
+ ---help---
+ Code executes from on-chip RAM at address 0x4000:0000.
+
+config DEFAULT_MODE
+ bool "Default Memory Mode"
+ ---help---
+ Executes from 0x0000:0000. In non-default modes, the MEMAP register
+ is set override the settings of the CPU configuration pins.
+
+endchoice
+
+config CODE_BASE
+ hex "Execuation Base Address"
+ default 0x00000000
+ ---help---
+ This must match the expected address for the selected "Memory
+ Execution Address":
+
+ EXTMEM_MODE: 0x8000:0000
+ RAM_MODE: 0x4000:0000
+ DEFAULT)MODE: 0x0000:0000
+
+config PLL_SETUP
+ bool "Configure the PLL"
+ default y
+
+config MAM_SETUP
+ bool "Configure the Memory Accelerator Module (MAM)"
+ default y
+
+config APBDIV_SETUP
+ bool "Configure the APB Divider"
+ default y
+
+config APBDIV_VALUE
+ int "APB Divisor"
+ default 1
+
+config EMC_SETUP
+ bool "Configure EMC"
+ default n
+
+config BCFG0_SETUP
+ bool "Configure BCFG0"
+ default n
+
+config BCFG1_SETUP
+ bool "Configure BCFG1"
+ default n
+
+config BCFG2_SETUP
+ bool "Configure BCFG2"
+ default n
+
+config BCFG3_SETUP
+ bool "Configure BCFG3"
+ default n
+
+config ADC_SETUP
+ bool "Configure ADC"
+ default y
+
+menu "LPC214x Peripheral Support"
+
+config LPC214X_UART0
+ bool
+ default y
+ select ARCH_HAVE_UART0
+
+config LPC214X_UART1
+ bool
+ default y
+ select ARCH_HAVE_UART1
+
+config LPC214X_USBDEV
+ bool "USB Device"
+ default y
+ depends on USBDEV
+
+endmenu
+
+config LPC214x_FIO
+ bool "Fast GPIO"
+ default n
+
+if LPC214X_USBDEV
+menu "LPC214x USB Device Configuration"
+
+config LPC214X_USBDEV_DMA
+ bool "USB Device DMA Support"
+ default n
+
+config CONFIG_LPC214X_USBDEV_NDMADESCRIPTORS
+ int "Number of USB DMA Descriptors"
+ default 8
+ depends on LPC214X_USBDEV_DMA
+
+config LPC214X_USBDEV_EPFAST_INTERRUPT
+ bool "USB Device Fast Endpoint Interrupts"
+ default n
+
+config LPC214X_USBDEV_FRAME_INTERRUPT
+ bool "USB Device Frame Interrupts"
+ default n
+
+config LPC214X_USBDEV_REGDEBUG
+ bool "USB Device Register-Level Debug Output"
+ default n
+ depends on DEBUG
+
+endmenu
+endif
+