summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2021-11-28 15:53:28 +0800
committersakumisu <[email protected]>2021-11-29 10:32:06 +0800
commit47acf149dbc36560dc091807f1f49171f85a1011 (patch)
treed2097d2f8d301048f8f6fa3bcd0441d0feffef2a
parentafde5918d17d518aefb7a4c6c034413ef012ee63 (diff)
enable ep rx for next
-rw-r--r--demo/stm32/stm32f429igt6/Core/Src/main.c1
-rw-r--r--demo/stm32/stm32h743vbt6/Core/Src/main.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/demo/stm32/stm32f429igt6/Core/Src/main.c b/demo/stm32/stm32f429igt6/Core/Src/main.c
index ab7d3fd6..b1acbcb4 100644
--- a/demo/stm32/stm32f429igt6/Core/Src/main.c
+++ b/demo/stm32/stm32f429igt6/Core/Src/main.c
@@ -165,6 +165,7 @@ void usbd_cdc_acm_out(uint8_t ep)
usbd_ep_read(ep,data,64,&read_byte);
printf("out\r\n");
printf("read len:%d\r\n",read_byte);
+ usbd_ep_read(ep,NULL,0,NULL);
}
void usbd_cdc_acm_in(uint8_t ep)
diff --git a/demo/stm32/stm32h743vbt6/Core/Src/main.c b/demo/stm32/stm32h743vbt6/Core/Src/main.c
index 4d132105..e281890a 100644
--- a/demo/stm32/stm32h743vbt6/Core/Src/main.c
+++ b/demo/stm32/stm32h743vbt6/Core/Src/main.c
@@ -166,6 +166,7 @@ void usbd_cdc_acm_out(uint8_t ep)
usbd_ep_read(ep,data,64,&read_byte);
printf("out\r\n");
printf("read len:%d\r\n",read_byte);
+ usbd_ep_read(ep,NULL,0,NULL);
}
void usbd_cdc_acm_in(uint8_t ep)