summaryrefslogtreecommitdiff
path: root/nuttx/configs/mcu123-lpc214x/nsh/defconfig
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-30 00:52:03 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-30 00:52:03 +0000
commit862e22d0a973966aa12fa2bae11cbffe515f87a6 (patch)
treecfbdce80737b8297718eae492538accd3b836251 /nuttx/configs/mcu123-lpc214x/nsh/defconfig
parent3b65f2108550083f6e3f4c814c5051914c5d6998 (diff)
downloadpx4-nuttx-862e22d0a973966aa12fa2bae11cbffe515f87a6.tar.gz
px4-nuttx-862e22d0a973966aa12fa2bae11cbffe515f87a6.tar.bz2
px4-nuttx-862e22d0a973966aa12fa2bae11cbffe515f87a6.zip
Add usb trace capability
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@963 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/mcu123-lpc214x/nsh/defconfig')
-rw-r--r--nuttx/configs/mcu123-lpc214x/nsh/defconfig84
1 files changed, 84 insertions, 0 deletions
diff --git a/nuttx/configs/mcu123-lpc214x/nsh/defconfig b/nuttx/configs/mcu123-lpc214x/nsh/defconfig
index ddbfe328d..cc1ded74a 100644
--- a/nuttx/configs/mcu123-lpc214x/nsh/defconfig
+++ b/nuttx/configs/mcu123-lpc214x/nsh/defconfig
@@ -328,6 +328,90 @@ CONFIG_NET_DHCP_LIGHT=n
CONFIG_NET_RESOLV_ENTRIES=4
#
+# USB Device Configuration
+#
+# CONFIG_USBDEV
+# Enables USB device support
+# CONFIG_USBDEV_ISOCHRONOUS
+# Build in extra support for isochronous endpoints
+# CONFIG_USBDEV_DUALSPEED
+# Hardware handles high and full speed operation (USB 2.0)
+# CONFIG_USBDEV_SELFPOWERED
+# Will cause USB features to indicate that the device is
+# self-powered
+# CONFIG_USBDEV_MAXPOWER
+# Maximum power consumption in mA
+# CONFIG_USBDEV_TRACE
+# Enables USB tracing for debug
+# CONFIG_USBDEV_TRACE_NRECORDS
+# Number of trace entries to remember
+CONFIG_USBDEV=n
+CONFIG_USBDEV_ISOCHRONOUS=n
+CONFIG_USBDEV_DUALSPEED=n
+CONFIG_USBDEV_SELFPOWERED=y
+CONFIG_USBDEV_MAXPOWER=100
+CONFIG_USBDEV_TRACE=n
+CONFIG_USBDEV_TRACE_NRECORDS=128
+
+#
+# LPC214X USB Configuration
+#
+# CONFIG_LPC214X_USBDEV_FRAME_INTERRUPT
+# Handle USB Start-Of-Frame events.
+# Enable reading SOF from interrupt handler vs. simply reading on demand.
+# Probably a bad idea... Unless there is some issue with sampling the SOF
+# from hardware asynchronously.
+# CONFIG_LPC214X_USBDEV_EPFAST_INTERRUPT
+# Enable high priority interrupts. I have no idea why you might want to
+# do that
+# CONFIG_LPC214X_USBDEV_NDMADESCRIPTORS
+# Number of DMA descriptors to allocate in the 8Kb USB RAM. This is a
+# tradeoff between the number of DMA channels that can be supported vs
+# the size of the DMA buffers available.
+# CONFIG_LPC214X_USBDEV_DMA
+# Enable lpc214x-specific DMA support
+CONFIG_LPC214X_USBDEV_FRAME_INTERRUPT=n
+CONFIG_LPC214X_USBDEV_EPFAST_INTERRUPT=n
+CONFIG_LPC214X_USBDEV_DMA=n
+CONFIG_LPC214X_USBDEV_NDMADESCRIPTORS=0
+CONFIG_LPC214X_USBDEV_DMAINTMASK=0
+
+#
+# USB Serial Device Configuration
+#
+# CONFIG_USBSERIAL_EPOUT
+# CONFIG_USBSERIAL_EPIN
+# CONFIG_USBSERIAL_NWRREQS
+# The number of write requests that can be in flight
+# CONFIG_USBSERIAL_NRDREQS
+# The number of read requests that can be in flight
+# CONFIG_USBSERIAL_RXBUFSIZE
+# Size of the serial receive buffer
+# CONFIG_USBSERIAL_TXBUFSIZE
+# Size of the serial transmit buffer
+# CONFIG_USBSER_VENDORID
+# The vendor ID code
+# CONFIG_USBSER_PRODUCTID
+# The product ID code
+CONFIG_USBSERIAL_EPOUT=1
+CONFIG_USBSERIAL_EPIN=2
+CONFIG_USBSERIAL_NWRREQS=4
+CONFIG_USBSERIAL_NRDREQS=4
+CONFIG_USBSER_VENDORID=0x0525
+CONFIG_USBSER_PRODUCTID=0xa4a6
+CONFIG_USBSERIAL_RXBUFSIZE=512
+CONFIG_USBSERIAL_TXBUFSIZE=512
+
+#
+# USB Device Zero Configuration
+# CONFIG_USBSER_VENDORID
+# The vendor ID code
+# CONFIG_USBSER_PRODUCTID
+# The product ID code
+CONFIG_USBZERO_VENDORID=0x0525
+CONFIG_USBZERO_PRODUCTID=0xa4a0
+
+#
# Settings for examples/ostest
CONFIG_EXAMPLES_OSTEST_LOOPS=1
CONFIG_EXAMPLES_OSTEST_STACKSIZE=4096