diff --git a/include/usbd_gs_can.h b/include/usbd_gs_can.h index 7329af4..5de535b 100644 --- a/include/usbd_gs_can.h +++ b/include/usbd_gs_can.h @@ -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);