diff options
| author | sakumisu <[email protected]> | 2021-11-16 22:39:28 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2021-11-16 22:39:34 +0800 |
| commit | 8aea7344ca0902ae7b06533861854c23b070c6f4 (patch) | |
| tree | ab01d24ee9cef93d19c66c1a31081fd034326ab8 | |
| parent | 0b056ae3fda33d003dca8c7661b7f177f68beaf1 (diff) | |
add usb cdc in ep test
| -rw-r--r-- | demo/stm32f103c8t6/Core/Src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/demo/stm32f103c8t6/Core/Src/main.c b/demo/stm32f103c8t6/Core/Src/main.c index 97224a39..d9879cc2 100644 --- a/demo/stm32f103c8t6/Core/Src/main.c +++ b/demo/stm32f103c8t6/Core/Src/main.c @@ -232,8 +232,11 @@ int main(void) while (1) { /* USER CODE END WHILE */ - + /* USER CODE BEGIN 3 */ + uint8_t data_buffer[10] = {0x31,0x32,0x33,0x34,0x35,0x31,0x32,0x33,0x34,0x35}; + usbd_ep_write(0x81,data_buffer,10,NULL); + HAL_Delay(500); } /* USER CODE END 3 */ } |
