mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-28 06:02:52 +08:00
usbd_gs_can: add USB defines for SMT32G0
This commit is contained in:
parent
f0004f9a46
commit
4dad6a10d2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user