implement msc device class

usbd auto stall control for not supported return from class control request
usbd implement xfer isr callback mechanism
DCD
- implement dcd multiple qtd support
- dcd dcd_pipe_stall
- implement dcd_pipe_queue_xfer
- xfer_complete_isr
- flush control endpoint if received new setup while previous transfer is not complete
change msc_cmd_block_wrapper_t flags field to dir
force full speed for easy testing

NOTEs: somehow unable to get endpoint IN interrupt with ioc
This commit is contained in:
hathach
2013-11-01 12:11:26 +07:00
parent c760c69d51
commit 3a54ad4c0d
28 changed files with 821 additions and 243 deletions

View File

@@ -291,7 +291,7 @@ typedef struct {
/// SITD is 32-byte aligned but occupies only 28 --> 6 bytes for storing extra data
uint8_t used;
uint8_t IhdIdx;
uint8_t ihd_idx;
uint8_t reserved2[2];
}ATTR_ALIGNED(32) ehci_sitd_t;