Frank Benkert
dcc9b07715
[[This is part 1 or several commits]]
...
We developed a huge Changeset over a year ago to make USB Composite configuration dynamical and be able to instanciate the CDCACM multiple times inside this device. We use this feature to switch between one in normal and up to three CDCACMs in maintenance boot.
The control path starts in “boardctl.c” where the configuration for the device is constructed. There are still a few issues which I’ll ask you to have a look at before this beast can be merged.
1. To be able to construct the data dynamically I have changed some USB-Structs to be packed. Maybe there are additional structs to change (just for completeness – not for current functionality).
2. I’ve added the Macro “COMPILE_TIME_ASSERTION” two times (in usbmsc_desc.c and in cdcacm_desc.c) to stay private. Maybe you’ll find a better place. It’s used to check the size of the structs against the assumptions.
3. I’ve changed the interface for some USB-Functions to receive also the dynamic configuration. Maybe this can be done more elegant.
4. The original NuttX (without the patch) seems to have problems with a Composite device holding a CDCACM and an MSC. The “USB SET CONFIGURATION” request does not to work at all. This makes the test fail under Windows and under Linux. Applying this patch doesn’t change anything – because it only changes the configuration – not the behavior. Maybe you’ll have a look at this problem before applying the patch.
2017-06-01 14:08:22 -06:00
Gregory Nutt
a897fd4ccf
Eliminate use of apps/system/usbmonitor. Use drivers/usbmonitor instead.
2016-06-30 13:09:22 -06:00
Gregory Nutt
75a4a5dcbe
Back part of a previous CDC/ACM change. Improve some Kconfig comments.
2016-03-19 12:45:33 -06:00
Gregory Nutt
9644d42e91
USB CDC/ACM device: Trivial configuration clean-up
2016-03-19 07:36:39 -06:00
David Sidrane
2cfa023039
RD - comments were for WR
2016-03-17 21:45:57 +00:00
Gregory Nutt
4a7e28ba96
CDC/ACM: Fix a bad default value in last commit
2015-12-08 07:33:49 -06:00
Gregory Nutt
513cc08c7f
change default size of CDC/ACM serial buffer sizes
2015-12-07 17:18:14 -06:00
Gregory Nutt
2726f0ac7c
USB serial driver Kconfig: Select default sizes for serial buffers so that the can hold even multiples of the max packet size.
2015-12-03 14:17:41 -06:00
Gregory Nutt
dbc9d67b3a
USBDEV Kconfig: CONFIG_USBDEV_TRACE_INITIALIDSET missing from Kconfig file
2015-09-08 07:25:21 -06:00
Gregory Nutt
342f5fe33d
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation
2015-06-28 08:08:57 -06:00
Gregory Nutt
726dadffb4
Add CONFIG_CDCACM_IFLOWCONTROL. Just hooks for now
2015-04-16 12:24:56 -06:00
Gregory Nutt
0da9aaeb09
Fix some recurring typos: postion->position, *atino->*ation
2014-07-08 13:12:36 -06:00
Gregory Nutt
6578d646da
Back out part of 610e2aa0c224e2936fe8009ef4a2351ce607067a: Need to be able to select USB console devices when there is no /dev/console enabled. Noted by Librae
2014-04-08 11:04:25 -06:00
Gregory Nutt
cbdc9155ab
SAMA5: Add support for DBGU. Xplained board now uses DBGU for the serial console
2014-04-01 11:24:15 -06:00
Gregory Nutt
b951732a2b
Reimagine the USB MSC worker thread as a kernel thread (instead of a pthread)
2014-03-25 14:19:27 -06:00
Gregory Nutt
c6127ad09d
If DCD supports queuing of stall requests then USB MSC delay work-around is not necessary
2014-03-20 15:20:24 -06:00
Gregory Nutt
f1671bb6a7
Alloc CONFIG_FS_READABLE/WRITABLE to be defined in Kconfig files while preserving backward compatibility with legacy configurations (for the time being)
2013-11-15 09:49:27 -06:00
Gregory Nutt
fd7126771f
Make default request size in the Kconfig file match default in C code
2013-11-03 07:42:25 -06:00
Gregory Nutt
b3ecd158ac
Mov apps/examples/composite to apps/system/composite; convert configs/stm3210e-eval/composite to use kconfig-frontend tools -- untested
2013-09-25 18:50:14 -06:00
Gregory Nutt
cf5cf0da72
SAMA5D3x-EK AT25 Serial FLASH: Dropping SPI frequency to 10MHz gives more reliable behavior
2013-09-22 12:22:55 -06:00
Gregory Nutt
fbd5ab0758
Beginning of support for USB host side tracing
2013-09-09 14:01:52 -06:00
Gregory Nutt
9a9de5de81
Fix warnings in USB MSC when compiled for a high speed device; also fix USB MSC default VID/PID configuration
2013-09-07 10:12:02 -06:00
Gregory Nutt
8912bcb1ea
SAMA5D3x-EK: Add support for USB MSC device on AT25 serial flash
2013-09-06 13:07:29 -06:00
Gregory Nutt
fb37248343
CDC/ACM and PL2303 device drivers: Don't use the max packet size assigned to an endpoint in order to determine the request buffer size. The endpoint has not yet been configured that max packet size may be wrong.
2013-09-05 18:00:16 -06:00
Gregory Nutt
67a126a5dc
Misc USB device changes reated to SAMA5, trace support, and USB monitoring
2013-09-01 11:52:21 -06:00
Gregory Nutt
47bbf54f11
Optimize request buffer sizes in the serial USB drivers so that we avoid so many NULL packets and so that the OUT request buffer size is exactly the max packet size.
2013-05-29 12:30:37 -06:00
Gregory Nutt
f9b9875952
Various Kconfig files still have references to CONFIG_ variables. Some in harmless comments, some in config definionts which is not harmless. All removed
2013-04-25 15:52:00 -06:00
Gregory Nutt
ad2ebf1dd8
Convert olimex-lpc17stk configuration to use the kconfig-frontends tools; Fix some compile errors in the pl2303 USB device driver
2013-04-12 08:38:52 -06:00
patacongo
2c9d402ad4
A few NuTiny-SDK-NUC120 fixes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5667 42af7a65-404d-4744-a932-0658087f49c3
2013-02-23 23:42:06 +00:00
patacongo
d932e56dca
STM32 F4 patches from Petteri Aimonen (mostly USB)
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5652 42af7a65-404d-4744-a932-0658087f49c3
2013-02-15 14:37:37 +00:00
patacongo
cdbbfaa464
Fix readline return value; Add support for removable serial devices
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5589 42af7a65-404d-4744-a932-0658087f49c3
2013-01-31 16:52:20 +00:00
patacongo
9b5d4a7b46
USB monitor daemon updates
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5579 42af7a65-404d-4744-a932-0658087f49c3
2013-01-29 13:30:10 +00:00
patacongo
a502d50e1e
Updates for stm32f4discovery/usbnsh configuration
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5574 42af7a65-404d-4744-a932-0658087f49c3
2013-01-28 01:44:45 +00:00
patacongo
68b11dc1ee
Add configs/stm32f4discovery/usbnsh
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5572 42af7a65-404d-4744-a932-0658087f49c3
2013-01-27 19:17:56 +00:00
patacongo
b19a1869ec
USB device drivers: Add hooks to to use common, external DMA buffer allocation implementation..
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5142 42af7a65-404d-4744-a932-0658087f49c3
2012-09-13 14:14:18 +00:00
patacongo
0fcb7e439a
The M3 Wildfire port is code complete and ready for test
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5125 42af7a65-404d-4744-a932-0658087f49c3
2012-09-10 22:26:37 +00:00
patacongo
2a6c280b7a
Add LPC31 Kconfig
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5104 42af7a65-404d-4744-a932-0658087f49c3
2012-09-06 20:08:25 +00:00
patacongo
0830ef18dd
Minor kconfig fixes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4600 42af7a65-404d-4744-a932-0658087f49c3
2012-04-13 15:04:05 +00:00
patacongo
1dc41e329b
Kconfig update
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4599 42af7a65-404d-4744-a932-0658087f49c3
2012-04-13 14:27:44 +00:00
patacongo
330b89ca0e
Add kconfig documentation
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4567 42af7a65-404d-4744-a932-0658087f49c3
2012-04-06 16:45:52 +00:00
patacongo
4b8c0c41c8
Adding skeleton Kconfig files (part 1 of 2)
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4564 42af7a65-404d-4744-a932-0658087f49c3
2012-04-06 15:49:35 +00:00