Skip to content

Commit 39bb12f

Browse files
committed
system(USB): update core and class files after middleware update
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 5061f11 commit 39bb12f

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_t USBD_CDC_RegisterInterface(USBD_HandleTypeDef *pdev,
145145
USBD_CDC_ItfTypeDef *fops);
146146

147+
#ifdef USE_USBD_COMPOSITE
148+
uint8_t USBD_CDC_SetTxBuffer(USBD_HandleTypeDef *pdev, uint8_t *pbuff,
149+
uint32_t length, uint8_t ClassId);
150+
uint8_t USBD_CDC_TransmitPacket(USBD_HandleTypeDef *pdev, uint8_t ClassId);
151+
uint8_t USBD_CDC_ClearBuffer(USBD_HandleTypeDef *pdev, uint8_t ClassId);
152+
#else
147153
uint8_t USBD_CDC_SetTxBuffer(USBD_HandleTypeDef *pdev, uint8_t *pbuff,
148154
uint32_t length);
149-
155+
uint8_t USBD_CDC_TransmitPacket(USBD_HandleTypeDef *pdev);
156+
uint8_t USBD_CDC_ClearBuffer(USBD_HandleTypeDef *pdev);
157+
#endif /* USE_USBD_COMPOSITE */
150158
uint8_t USBD_CDC_SetRxBuffer(USBD_HandleTypeDef *pdev, uint8_t *pbuff);
151159
uint8_t USBD_CDC_ReceivePacket(USBD_HandleTypeDef *pdev);
152-
uint8_t USBD_CDC_ClearBuffer(USBD_HandleTypeDef *pdev);
153-
uint8_t USBD_CDC_TransmitPacket(USBD_HandleTypeDef *pdev);
154160
/**
155161
* @}
156162
*/

0 commit comments

Comments
 (0)