]> rtime.felk.cvut.cz Git - sysless.git/commit
Minor correction in LPC USB support code.
authorppisa <ppisa>
Tue, 11 Nov 2008 19:46:22 +0000 (19:46 +0000)
committerppisa <ppisa>
Tue, 11 Nov 2008 19:46:22 +0000 (19:46 +0000)
commitd3c9f0437e4f98ce529771aae54782910f253b82
tree66c4d4da48c997acc2dc905b9733f5618a99aa8d
parent5d371a9adf5f906257e78e77f5e23c33c7ebe369
Minor correction in LPC USB support code.

The USB_CMD_SEL_EP_CLRI command expects following data read,
but stall condition (USBC_EP_STAT_ST ) setting is achieved by
data write (the function is invoked lpc_write_cmd_data).
The right command label is USB_CMD_SET_EP_STAT, but it has
same value as USB_CMD_SEL_EP_CLR and is distinguished distinguishes
by following read only. So change has no real effect on compiled code.

The other problem is in function lpc_usb_read_endpoint()
if buffer size is smaller then selected maximal packet size.
Behavior corrected, but again no real effect for correct uses
of the function there.
libs4c/usb/lpcusb/lpc.c
libs4c/usb/lpcusb/lpcusb.c