summaryrefslogtreecommitdiff
path: root/firmware/usbstack/usb_serial.c (follow)
Commit message (Collapse)AuthorAge
* Fix a bug in usbserial that would allow to send messages on EP_CONTROL ↵Amaury Pouly2010-01-11
| | | | | | between usb init and endpoints allocation via logf. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24214 a1c6a512-1295-4272-9138-f99709370657
* Comment out LOGF_ENABLE defines everywhere, replace evil commentsJeffrey Goode2009-11-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23497 a1c6a512-1295-4272-9138-f99709370657
* Add const to usb_serial_send() buffer.Frank Gevaerts2009-08-19
| | | | | | | | | Flyspray: FS#10519 Author: Amaury Pouly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22422 a1c6a512-1295-4272-9138-f99709370657
* Limit usb_serial packets to 32 bytes. It's unclear why this is needed, but ↵Frank Gevaerts2009-08-12
| | | | | | | | | usb serial packets larger than 96 bytes seem to never be sent. Thanks to Amaury Pouly for investigating this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22285 a1c6a512-1295-4272-9138-f99709370657
* Reorganise USB stack defines. Now config.h decides which class drivers get ↵Frank Gevaerts2009-05-23
| | | | | | | | | enabled instead of usb_core.h Also enable HID, and use that as the dummy class instead of charging-only for controllers that have working interrupt transfers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21053 a1c6a512-1295-4272-9138-f99709370657
* Add working USB HID driver, by Tomer Shalev (part of his GSoC work).Frank Gevaerts2009-05-16
| | | | | | | | | This needs support for usb interrupt transfers, so there are some changes in various USB drivers as well (only usb-drv-arc supports it at this point, others won't have working HID yet). HID is disabled for now, as the apps/ part is not included yet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20962 a1c6a512-1295-4272-9138-f99709370657
* simplify and cleanup usb_serial.c (FS#10149 by Tomer Shalev)Frank Gevaerts2009-04-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20746 a1c6a512-1295-4272-9138-f99709370657
* USB related Cosmetics, whitespace and readability fixes (FS#10147 by Tomer ↵Frank Gevaerts2009-04-18
| | | | | | Shalev) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20737 a1c6a512-1295-4272-9138-f99709370657
* Allow class drivers to reuse the core data buffer for control transfers. ↵Frank Gevaerts2009-04-18
| | | | | | This doesn't make much difference right now, but it should keep HID memory usage lower (once HID is ready) (FS#10146 by Tomer Shalev) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20735 a1c6a512-1295-4272-9138-f99709370657
* Add a PACK_DESCRIPTOR macro to make the class drivers a bit more readable ↵Frank Gevaerts2009-04-18
| | | | | | (FS#10145 by Tomer Shalev) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20733 a1c6a512-1295-4272-9138-f99709370657
* small usb serial fixes. This seems to work fine on imx31, but for some ↵Frank Gevaerts2009-02-21
| | | | | | reason it sometimes stops sending data on portalplayer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20077 a1c6a512-1295-4272-9138-f99709370657
* more fixes. There's still something wrong as it sometimes suddenly stops ↵Frank Gevaerts2009-02-21
| | | | | | sending data. Disconnecting and reconnecting gets it going again git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20072 a1c6a512-1295-4272-9138-f99709370657
* Fix ringbuffer handling. This will hopefully fix the hang-on-fast-send issueFrank Gevaerts2009-02-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20064 a1c6a512-1295-4272-9138-f99709370657
* usb serial on PP seems to have broken. Fix itFrank Gevaerts2009-02-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20023 a1c6a512-1295-4272-9138-f99709370657
* reorganise the USB stack a bit to allow for easier integration of non-ARC ↵Frank Gevaerts2008-10-03
| | | | | | controller drivers git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18703 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* typo fixes (; instead of , at the end of two assignments)Frank Gevaerts2008-05-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17398 a1c6a512-1295-4272-9138-f99709370657
* Added missing usb #includes to usb source files.Bertrik Sikken2008-05-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17309 a1c6a512-1295-4272-9138-f99709370657
* - change the usb class driver framework to allow for device classes with ↵Frank Gevaerts2008-04-26
| | | | | | | | | | more than one interface or more than one endpoint pair - move the charging-only dummy driver out of usb_core git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17252 a1c6a512-1295-4272-9138-f99709370657
* Put USB controller structures in IRAM. This seems to make the connection ↵Frank Gevaerts2008-04-20
| | | | | | much more stable on PP502x git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17191 a1c6a512-1295-4272-9138-f99709370657
* UMS for the Gigabeat S. Bootloader USB mode. Has a couple quirks 1) First ↵Michael Sevakis2008-04-18
| | | | | | plug has problems if cold. Replug if it doesn't connect or not at high speed 2) Linux doesn't like the odd bootable flag value used in the partitions so it won't mount but Windows works. Fix minor OTG driver bugs and clean up device memory handling. Generic name for ARC controller driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17154 a1c6a512-1295-4272-9138-f99709370657
* reorganise the usb stack to provide a clean separation between core and ↵Frank Gevaerts2008-03-06
| | | | | | class drivers git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16541 a1c6a512-1295-4272-9138-f99709370657
* extra input checkingFrank Gevaerts2008-03-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16493 a1c6a512-1295-4272-9138-f99709370657
* remove a reundant MIN(), and reduce the buffer. We really don't need 16k for ↵Frank Gevaerts2008-03-02
| | | | | | this. It seems to work reliably at full speed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16491 a1c6a512-1295-4272-9138-f99709370657
* implement logf over usb-serial. Needs USB_SERIAL defined in usb_core.h to ↵Frank Gevaerts2008-03-02
| | | | | | | | | work, and needs to be enabled in the debug menu. It stops sending data after a while for unknown reasons. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16486 a1c6a512-1295-4272-9138-f99709370657
* Major USB stack improvements. It now works at nearly the maximum speed for a ↵Frank Gevaerts2008-02-20
| | | | | | | | | full speed connection, and does seem stable. Still not enabled by default, #define USE_ROCKBOX_USB is still required to enable it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16360 a1c6a512-1295-4272-9138-f99709370657
* Add a working serial driver to usb stack. At the moment it simply echos back ↵Christian Gmeiner2007-11-30
what it gets. You can test it on linux by 0) change relevant defines in usb_core.c 1) modprobe usbserial vendor=0x0781 product=0x7421 debug=1 2) picocom /dev/ttyUSB0 3) look at your logf screen if you build with logf support and enabled LOGF_ENABLE define in usb_serial.c I also modified usb_core so that storage and serial both can make use the the 'usb_core'-thread. More will come :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15850 a1c6a512-1295-4272-9138-f99709370657