aboutsummaryrefslogtreecommitdiff
path: root/lib/usb
AgeCommit message (Collapse)Author
2013-02-26Fix all warnings for stm32f1 lib.Piotr Esden-Tempski
2012-11-13Merge branch 'master' of git://github.com/libopencm3/libopencm3 into ↵Jeff Ciesielski
upstream-merge
2012-11-07Further re-factor USB string handling codeAndrey Smirnov
This commit refactors USB string code, making it, hopefully, less buggy and more easier to understand. It also removes "magic" bit manipulation and "magic" numbers;
2012-11-07Extend control hook frameworkAndrey Smirnov
This commits adds a new error code that can be return from a registered control callback: USBD_REQ_NEXT_CALLBACK. This return code signifies that the callback is done processing the data successfully, but user would like to have all matching callbacks down the callback chain to be executed too. This change allows for example to intercept standard requests like GET_DESCRIPTOR, do some small action upon receiving of one, but still have the standard callback executed and do it's job. This way user doesn't have to re-implement standard GET_DESCRIPTOR functionality if they want to intercept that request to do some small thing.
2012-11-06Change USB strings handling codeAndrey Smirnov
This commit add an extra field to the _usbd_device, that allows to keep track of the number of USB strings which allows simplify boundaries checking code in usb_standard_get_descriptor. This commit also changes the index base for strings in usb_standard_get_descriptor which allows to get rid of necessity to have a dummy one-character string in a strings array.
2012-09-13USB core updated for reentrance based on Christian Cier-Zniewski's branchJason Kotzin
2012-09-13fixing usb and alignment issueJason Kotzin
2012-03-02License change of the library to LGPL, version 3 or later.Piotr Esden-Tempski
Agreed to by all the significant contributors to the library.
2012-02-12Add an interface for soft disconnection, and hook it up in the F107 driver.Mike Smith
2011-12-28usb: Added support for Interface Association descriptors.Gareth McMullin
2011-12-17Added USB example for stm32f4.Gareth McMullin
Moved clock enable for OTG_FS back into applications. This and gpio config are the only differences between f107 and f2xx/f4xx.
2011-11-17usb: Fix some Doxygen comments.Uwe Hermann
2011-11-17usb: Coding-style fixes.Uwe Hermann
2011-11-12Only allow one packet in TX fifos.Gareth McMullin
This fixes a problem where packets were written too quickly. The hardware disabled the endpoint after the fist packet is sent, and others just waited in the queue.
2011-10-31usb_f107: Fixed lost 4 bytes on control OUT transaction.Gareth McMullin
2011-10-29Merge remote-tracking branch 'fnoble/stm32f2'Uwe Hermann
2011-10-29Restored OTG clock enable in RCC in f107 usb init.Gareth McMullin
2011-10-29Fixed some F105/F107 USB issues. Added user callback on SOF.Gareth McMullin
Made examples depend on lib.
2011-10-12Fixing some more header referencesFergus Noble
2011-10-12Fixing some header referencesFergus Noble
2011-07-13Move enabling the USB Clock into stm32f10x_usbd_initUwe Bonnes
2011-04-24Check index bounds on usb string descriptor request.Gareth McMullin
2011-04-04Fixed stm32f107 usb driver to allow calling usbd_poll from irq handler.Gareth McMullin
2011-03-30Added usbd_ep_nak_set() to force flow control on OUT endpoints.Gareth McMullin
2011-03-15Fixed non-control endpoints for connectivity line USB.Gareth McMullin
2011-03-14Connectivity line USB driver now enumerating correctly.Gareth McMullin
2011-02-20USB driver for Connectivity-line devices partially working.Gareth McMullin
2011-02-10Minor cleanup of usb. Template driver for STM32F107 added.Gareth McMullin
2011-01-30Cosmetics, consistency fixes, fix compiler warnings.Uwe Hermann
2011-01-30Abstracted USB driver interface to to allow driver selection.Gareth McMullin
2011-01-30Reset CTR flag for endpoint from usbd_poll if no callback.Gareth McMullin
2011-01-30Clear user control request handlers on set_configuration request.Gareth McMullin
2010-12-31Some more file/path restructuring.Uwe Hermann
All #includes now explicitly use the "<libopencm3/stm32/rcc.h>" format. If you want to get rid of the "libopencm3" prefix in your local project you can add a respective -I entry in your Makefile (not recommended though). All .ld files and .a libs are installed in $(TOOLCHAIN_DIR)/lib directly (as before), but are now renamed to avoid potential conflicts now or in the future. Examples: libopencm3_lpc13xx.a libopencm3_lpc13xx.ld libopencm3_stm32.a libopencm3_stm32.ld
2010-12-30More renames for libopenstm32 -> libopencm3.Uwe Hermann
2010-12-30Rename include/libopenstm32 to include/stm32.Uwe Hermann
2010-12-30Factor out cm3/common.h and cm3/memorymap.h.Uwe Hermann
2010-12-29USB: Cosmetics and coding-style fixes.Uwe Hermann
2010-12-29Replace uint8_t with u8 et al, fix whitespace.Uwe Hermann
2010-12-29Move generic USB stuff to a subdir, dedupe .h files.Uwe Hermann
Adapt examples and the lib code accordingly.
2010-12-29More whitespace fixes.Uwe Hermann
2010-11-06Improved dispatching of user control callbacks.Gareth McMullin
Only cdc_acm example is updated.
2010-11-04Fixed HALT condition handling and data toggle.Gareth McMullin
2010-11-04add standard requestMartin Mueller
2010-11-02Initial USB device stack for STM32.Uwe Hermann
Patch provided by Gareth McMullin <gareth@blacksphere.co.nz>, thanks a lot!