stm32: Add support for USB on G0 MCUs.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2023-03-21 17:19:27 +11:00
parent b7ea90d4cb
commit c7923b1139
6 changed files with 91 additions and 44 deletions

View File

@@ -296,7 +296,15 @@ void DebugMon_Handler(void) {
/* file (startup_stm32f4xx.s). */
/******************************************************************************/
#if defined(STM32L0) || defined(STM32L432xx)
#if defined(STM32G0)
#if MICROPY_HW_USB_FS
void USB_UCPD1_2_IRQHandler(void) {
HAL_PCD_IRQHandler(&pcd_fs_handle);
}
#endif
#elif defined(STM32L0) || defined(STM32L432xx)
#if MICROPY_HW_USB_FS
void USB_IRQHandler(void) {