stm32: Add support for USB on L0 MCUs.

This commit is contained in:
Damien George
2019-07-16 14:45:53 +10:00
parent 788e7f50f2
commit 4c1ad1f691
6 changed files with 100 additions and 6 deletions

View File

@@ -298,6 +298,16 @@ void DebugMon_Handler(void) {
/* file (startup_stm32f4xx.s). */
/******************************************************************************/
#if defined(STM32L0)
#if MICROPY_HW_USB_FS
void USB_IRQHandler(void) {
HAL_PCD_IRQHandler(&pcd_fs_handle);
}
#endif
#else
/**
* @brief This function handles USB-On-The-Go FS global interrupt request.
* @param None
@@ -405,6 +415,8 @@ void OTG_HS_WKUP_IRQHandler(void) {
}
#endif
#endif // !defined(STM32L0)
/**
* @brief This function handles PPP interrupt request.
* @param None