usbd_gs_can: add USB defines for SMT32G0

This commit is contained in:
Ryan Edwards 2022-11-16 11:31:27 -05:00 committed by Marc Kleine-Budde
parent f0004f9a46
commit 4dad6a10d2

View File

@ -105,6 +105,9 @@ typedef struct {
// RX FIFO size chosen according to reference manual RM0368 which suggests
// using (largest packet size / 4) + 1
# define USB_RX_FIFO_SIZE ((256U / 4U) + 1U)
#elif defined(STM32G0)
# define USB_INTERFACE USB_DRD_FS
# define USB_INTERRUPT USB_UCPD1_2_IRQn
#endif
uint8_t USBD_GS_CAN_Init(USBD_GS_CAN_HandleTypeDef *hcan, USBD_HandleTypeDef *pdev);