David Sidrane
548108764a
BugFix:uart_ops_s portion of cdcacm will not be initalized with correct functions if CONFIG_SERIAL_DMA is lit.
...
This fixes the issses in a C99 compatible way
2016-12-17 04:29:41 -10:00
Gregory Nutt
e0b4a10dfa
drivers/serial/pty.c, serial.c, usbdev/cdcacm.c, include/nuttx/fs/ioctl.h: Fix FIONWRITE and add FIONSPACE. All implementations of FIONWRITE were wrong. FIONWRITE should return the number of bytes waiting in the outgoing send queue, not the free space. Rather, FIONSPACE should return the free space in the send queue.
2016-07-25 14:06:32 -06:00
ziggurat29
2cadf783fd
cdcacm_unbind leaks write request objects. This arises due to freeing the
...
bulk IN endpoint before the loop that frees the requests via cdcasm_freereq.
That function checks the parameters and skips the freeing if either is NULL.
Freeing the bulk IN enpoint will cause the first param to be NULL, thereby
bypassing the free operation. To fix, I moved the release of the bulk IN
endpoint until after to loop (much as was the case for the OUT and read
requests, which did not exhibit the problem).
2016-07-07 12:02:23 -05:00
Gregory Nutt
1cdc746726
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:14:08 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
David Sidrane
d2a017d9bb
rdreqs was defined as CONFIG_CDCACM_NWRREQS size
2016-03-17 21:47:40 +00:00
Gregory Nutt
0fb035f76b
Standardize some naming in code section comments
2016-02-21 18:09:04 -06:00
Gregory Nutt
2244ed46bc
nuttx/drivers: Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-14 07:32:58 -06:00
Gregory Nutt
cf14f8d1b5
drivers/: Fixes to spacing and alignement
2015-10-10 10:41:00 -06:00
Gregory Nutt
0b12dbf95d
Fix some spacing problems
2015-10-04 15:04:00 -06:00
Paul A. Patience
3b89eabd50
Correct #if to #ifdef when the macro can be undefined. Fix bug in AT24XX driver: it should compare AT24XX_ADDRSIZE to 2.
2015-09-01 13:52:29 -04:00
Gregory Nutt
82f51d01fb
Update some comments
2015-05-18 08:53:24 -06:00
Gregory Nutt
46e5d0a419
Add options to support all three host CDC/ACM protocols: Compliant, Reduced, and Bulk-Only
2015-05-10 08:16:58 -06:00
Gregory Nutt
c35bb693a9
USB host CDC/ACM fixes. Still kind of buggy
2015-05-08 10:58:41 -06:00
Gregory Nutt
737fd7dcec
drivers/usbhost: Add initial implementatino of a host-side CDC/ACM driver. Completely untested on initial commit (2015-05-06).
2015-05-06 12:49:00 -06:00
Gregory Nutt
81ab453f6a
Fix a mistatement in a comment
2015-05-04 13:44:49 -06:00
Gregory Nutt
726dadffb4
Add CONFIG_CDCACM_IFLOWCONTROL. Just hooks for now
2015-04-16 12:24:56 -06:00
Gregory Nutt
7bf9be7c33
Add hooks to CDC/ACM driver to support RX flow control
2015-04-16 09:11:51 -06:00
Gregory Nutt
a4a6917267
Fixes some issues found by the PX4 team using Coverity. From Pavel Krienko
2015-01-19 13:01:20 -06:00
Gregory Nutt
1780810d3d
Rename kmalloc to kmm_malloc for consistency
2014-08-31 17:26:36 -06:00
Gregory Nutt
54fa3b0b59
Rename kfree to kmm_free for consistency with other naming conventions
2014-08-31 17:04:02 -06:00
Gregory Nutt
2e08560fa0
Clear rxhead on disconnect to prevent data from being resent on re-connect
2014-06-06 10:34:58 -06:00
Gregory Nutt
7594d8b8cf
Add serial method so that lower half driver can provide RX flow control information. From Jussi Kivilinna
2014-05-08 09:00:33 -06:00
Gregory Nutt
4d25119e62
Fix various typos in comments. From Alan Carvalho de Assis
2014-04-06 09:02:02 -06:00
Gregory Nutt
6c5535cc38
SAMA5 clocking: USB clock setup needs to be done no matter the state of BMS and not matter how we are booting
2014-04-05 11:53:20 -06:00
Gregory Nutt
abca33bd6b
Cosmetic update to comments
2014-04-05 11:35:05 -06:00
Gregory Nutt
f67ee984f3
Correct unitialization of composite USB device. A stale pointer was being reused. From David Sidrane
2013-11-05 09:12:08 -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
c162cca9e8
SAMA5 UDPHS: Some very early debug corrections. Not yet working.
2013-09-02 12:26:15 -06:00
Gregory Nutt
0f20d4581b
Added FIONREAD and FIONWRITE to CDC/ACM driver. From Lorenz Meier
2013-08-10 19:21:39 -06:00
Gregory Nutt
82b528e0c8
Serial FIONREAD, FIONWRITE, and TERMIOS I/O processing from Mike Smith, Andrew Tridgell, and and Lorenz Meier
2013-08-10 19:14:05 -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
6d3a292f02
Fix null packet handling in the PIC32 USB device driver. This is a critical bug fix for PIC32. Add support for the USB monitor to the Sure-PIC32MX configuration
2013-05-28 13:36:01 -06:00
patacongo
bca9260b06
Missing calls to class SUSPEND/RESUME methods in all USB drivers
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5590 42af7a65-404d-4744-a932-0658087f49c3
2013-01-31 19:20:26 +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
14a629bcf9
Fix packet size calculation in CDC/ACM and PL2303 USB serial drivers
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4771 42af7a65-404d-4744-a932-0658087f49c3
2012-05-25 22:10:40 +00:00
patacongo
d96b4c1a10
Fix infinite loop in CDC/ACM driver
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4655 42af7a65-404d-4744-a932-0658087f49c3
2012-04-25 16:47:28 +00:00
patacongo
a571bad413
Extend the USB device/class interface: Add parameters to pass the EP0 OUT data that should accompany the OUT SETUP request
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4595 42af7a65-404d-4744-a932-0658087f49c3
2012-04-12 16:30:48 +00:00
patacongo
333bd7254a
Working for missing logic to get EP0 OUT DATA
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4594 42af7a65-404d-4744-a932-0658087f49c3
2012-04-12 14:47:29 +00:00
patacongo
5be2c492fc
Modify configuration for use with STM32 OTG FS driver testing
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4580 42af7a65-404d-4744-a932-0658087f49c3
2012-04-09 21:08:37 +00:00
patacongo
34b7ebdf68
Move serial header files to include/nuttx/serial
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4500 42af7a65-404d-4744-a932-0658087f49c3
2012-03-21 19:47:23 +00:00
patacongo
ca3ba34235
Add support for use of a USB serial device to provide NSH console I/O. Verified on the Sure PIPIC32MX board
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4458 42af7a65-404d-4744-a932-0658087f49c3
2012-03-06 20:21:57 +00:00
patacongo
391d33732c
Extend CDC/ACM driver so that can be connected/disconnected under software control; Add new NSH commands sercon and serdis that will connect and disconnect the CDC/ACM serial device
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4436 42af7a65-404d-4744-a932-0658087f49c3
2012-02-28 18:14:55 +00:00
patacongo
a79c599632
The composite USB device is basically functional (more testing needed)
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4343 42af7a65-404d-4744-a932-0658087f49c3
2012-01-27 18:33:41 +00:00
patacongo
23a8f1d218
Add a text for the new composite USB device
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4341 42af7a65-404d-4744-a932-0658087f49c3
2012-01-26 23:14:27 +00:00
patacongo
22a1b8dfe5
More USB composite device logic
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4340 42af7a65-404d-4744-a932-0658087f49c3
2012-01-26 19:37:34 +00:00
patacongo
3b9f7e1b4c
Major restructuring of CLASS<->driver interface to better support composite USB devices
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4339 42af7a65-404d-4744-a932-0658087f49c3
2012-01-26 17:42:44 +00:00
patacongo
270bd0a9c2
More name changes: USBSER->PL2303 CDCSER->CDCACM
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4337 42af7a65-404d-4744-a932-0658087f49c3
2012-01-25 23:04:17 +00:00
patacongo
02950353b2
Fixes on reverification of USB mass storage class
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4336 42af7a65-404d-4744-a932-0658087f49c3
2012-01-25 22:20:48 +00:00
patacongo
5b9d73ed52
Progress toward composite CDC/ACM+MSC USB device
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4332 42af7a65-404d-4744-a932-0658087f49c3
2012-01-25 19:27:20 +00:00