summaryrefslogtreecommitdiff
path: root/examples/gadget-ms.c
AgeCommit message (Collapse)AuthorFilesLines
2015-05-19libusbg: examples: Use digital format for bMaxPacketSize0Krzysztof Opasiak1-1/+1
bMaxPacketSize0 is maximal size of packet which can be used for communication with ep0. As most people use digital format for size, lets use digital format for both initialization of this member in gadget atributes and for printing it in show-gadgets. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-05-19libusbg: examples: Make examples easier to readKrzysztof Opasiak1-17/+19
Use the same order of structure initialization in all examples. Initialize gadget attributes and strings using: .member = val, syntax to make examples easier to read. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-04-27libusbg: Add example with mass storage functionKrzysztof Opasiak1-0/+159
Mass storage support has been recently added to libusbg. This commit adds an example program which show how to create gadget with this function. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Reviewed-by: Pawel Szewczyk <p.szewczyk@samsung.com>