aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorGurjant Kalsi <me@gurjantkalsi.com>2016-04-18 17:03:04 -0700
committerGurjant Kalsi <me@gurjantkalsi.com>2016-04-18 17:03:04 -0700
commitce0a3db7052e7b33de14685ba7158a4ddf5bd9f5 (patch)
treec4a3194cc9ce99e124d5b7164305d455c0e176e5 /platform
parent05c646a39a288294e3fedc68c704bf37f08f2db8 (diff)
downloadcommon-ce0a3db7052e7b33de14685ba7158a4ddf5bd9f5.tar.gz
[cdcserial][usb] Add a CDC-Serial USB Class Driver.
Diffstat (limited to 'platform')
-rw-r--r--platform/stm32f7xx/usbc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/stm32f7xx/usbc.c b/platform/stm32f7xx/usbc.c
index 16dd1e1a..570e9bbb 100644
--- a/platform/stm32f7xx/usbc.c
+++ b/platform/stm32f7xx/usbc.c
@@ -253,7 +253,9 @@ void usbc_ep0_send(const void *buf, size_t len, size_t maxlen)
void usbc_ep0_recv(void *buf, size_t len, ep_callback cb)
{
- PANIC_UNIMPLEMENTED;
+ LTRACEF("buf %p, len %zu\n", buf, len);
+
+ HAL_PCD_EP_Receive(&usbc.handle, 0, (void *)buf, len);
}
status_t usbc_setup_endpoint(ep_t ep, ep_dir_t dir, uint width, ep_type_t type)