libopencm3/libopencm3 — pull request #305 by kuldeepdhaka (2014-04-18 17:16:17+00:00)
Title: Add provisions to support multiple altsettings

This commit implements the support for one interface to have multiple
altsettings. It also adds hook that user can use to perform actions
when the alsetting switch is performed by host.

Changes:
* For backward compatibility, placed a pointer instead of allocating memory for whole interface struct.
* Always execute callback (even if the current interface alternate-settings matches).
* Multiple configuration support.

Signed-off-by: Kuldeep Singh Dhaka

Conflicts:
lib/usb/usb_standard.c