Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit39bb12f

Browse files
committed
system(USB): update core and class files after middleware update
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent5061f11 commit39bb12f

File tree

9 files changed

+412
-171
lines changed

9 files changed

+412
-171
lines changed

‎cores/arduino/stm32/usb/cdc/usbd_cdc.c

Lines changed: 207 additions & 87 deletions
Large diffs are not rendered by default.

‎cores/arduino/stm32/usb/cdc/usbd_cdc.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,19 @@ extern USBD_ClassTypeDef USBD_CDC;
144144
uint8_tUSBD_CDC_RegisterInterface(USBD_HandleTypeDef*pdev,
145145
USBD_CDC_ItfTypeDef*fops);
146146

147+
#ifdefUSE_USBD_COMPOSITE
148+
uint8_tUSBD_CDC_SetTxBuffer(USBD_HandleTypeDef*pdev,uint8_t*pbuff,
149+
uint32_tlength,uint8_tClassId);
150+
uint8_tUSBD_CDC_TransmitPacket(USBD_HandleTypeDef*pdev,uint8_tClassId);
151+
uint8_tUSBD_CDC_ClearBuffer(USBD_HandleTypeDef*pdev,uint8_tClassId);
152+
#else
147153
uint8_tUSBD_CDC_SetTxBuffer(USBD_HandleTypeDef*pdev,uint8_t*pbuff,
148154
uint32_tlength);
149-
155+
uint8_tUSBD_CDC_TransmitPacket(USBD_HandleTypeDef*pdev);
156+
uint8_tUSBD_CDC_ClearBuffer(USBD_HandleTypeDef*pdev);
157+
#endif/* USE_USBD_COMPOSITE */
150158
uint8_tUSBD_CDC_SetRxBuffer(USBD_HandleTypeDef*pdev,uint8_t*pbuff);
151159
uint8_tUSBD_CDC_ReceivePacket(USBD_HandleTypeDef*pdev);
152-
uint8_tUSBD_CDC_ClearBuffer(USBD_HandleTypeDef*pdev);
153-
uint8_tUSBD_CDC_TransmitPacket(USBD_HandleTypeDef*pdev);
154160
/**
155161
* @}
156162
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp