Skip to content

Commit ce4f3d2

Browse files
fprfpistm
fpr
authored andcommitted
Add USB IRQHandler for BluePill and MapleMini variants
Signed-off-by: fpr <[email protected]>
1 parent 5a7d6dd commit ce4f3d2

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Diff for: variants/BLUEPILL_F103C8/usb/usbd_conf.c

+9
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,15 @@ void HAL_PCD_DisconnectCallback(PCD_HandleTypeDef *hpcd)
242242
USBD_LL_DevDisconnected((USBD_HandleTypeDef*)hpcd->pData);
243243
}
244244

245+
/**
246+
* @brief This function handles USB global interrupt request.
247+
* @param None
248+
* @retval None
249+
*/
250+
void USB_LP_CAN1_RX0_IRQHandler(void) {
251+
HAL_PCD_IRQHandler(&hpcd_USB_FS);
252+
}
253+
245254
/*******************************************************************************
246255
LL Driver Interface (USB Device Library --> PCD)
247256
*******************************************************************************/

Diff for: variants/MAPLEMINI_F103CB/usb/usbd_conf.c

+9
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,15 @@ void HAL_PCD_DisconnectCallback(PCD_HandleTypeDef *hpcd)
242242
USBD_LL_DevDisconnected((USBD_HandleTypeDef*)hpcd->pData);
243243
}
244244

245+
/**
246+
* @brief This function handles USB global interrupt request.
247+
* @param None
248+
* @retval None
249+
*/
250+
void USB_LP_CAN1_RX0_IRQHandler(void) {
251+
HAL_PCD_IRQHandler(&hpcd_USB_FS);
252+
}
253+
245254
/*******************************************************************************
246255
LL Driver Interface (USB Device Library --> PCD)
247256
*******************************************************************************/

0 commit comments

Comments
 (0)