aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/usb/usbd.h
AgeCommit message (Collapse)Author
2012-11-13Merge branch 'master' of git://github.com/libopencm3/libopencm3 into ↵Jeff Ciesielski
upstream-merge
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-02Add C linkage declaration for C++ usageNicolas Schodet
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-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-10-29Fixed some F105/F107 USB issues. Added user callback on SOF.Gareth McMullin
Made examples depend on lib.
2011-03-30Added usbd_ep_nak_set() to force flow control on OUT endpoints.Gareth McMullin
2011-02-10Minor cleanup of usb. Template driver for STM32F107 added.Gareth McMullin
2011-01-30Abstracted USB driver interface to to allow driver selection.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