summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-21 10:41:12 +0100
committerDamien <damien.p.george@gmail.com>2013-10-21 10:41:12 +0100
commitcbb8868f742b168a69dc93210aa559a401374a60 (patch)
tree0762ce94cf12a528dff3fd8fd0f80c6fe0064948
parent4b6e85ca26ac9cacf578862688f3c2a77a9090a1 (diff)
VCP works, need to init comm port PC side; add some debugging output.
-rw-r--r--stm/lib/usbd_pyb_core.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/stm/lib/usbd_pyb_core.c b/stm/lib/usbd_pyb_core.c
index f388361aa..9c009a064 100644
--- a/stm/lib/usbd_pyb_core.c
+++ b/stm/lib/usbd_pyb_core.c
@@ -588,13 +588,15 @@ static uint8_t usbd_pyb_DataIn(void *pdev, uint8_t epnum) {
USB_Tx_length);
}
}
- break;
+ return USBD_OK;
case (MSC_IN_EP & 0x7f): // TODO?
MSC_BOT_DataIn(pdev, epnum);
- break;
+ return USBD_OK;
}
+ printf("DI %x\n", epnum);
+
return USBD_OK;
}
@@ -622,13 +624,15 @@ static uint8_t usbd_pyb_DataOut(void *pdev, uint8_t epnum) {
CDC_OUT_EP,
(uint8_t*)(USB_Rx_Buffer),
CDC_DATA_OUT_PACKET_SIZE);
- break;
+ return USBD_OK;
case (MSC_OUT_EP & 0x7f): // TODO is this correct?
MSC_BOT_DataOut(pdev, epnum);
- break;
+ return USBD_OK;
}
+ printf("DO %x\n", epnum);
+
return USBD_OK;
}