mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
19 lines
489 B
C
19 lines
489 B
C
#include "usb_core.h"
|
|
#include "usbd_core.h"
|
|
#include "usbd_cdc_core.h"
|
|
|
|
extern USB_OTG_CORE_HANDLE USB_OTG_dev;
|
|
extern uint32_t USBD_OTG_ISR_Handler (USB_OTG_CORE_HANDLE *pdev);
|
|
|
|
void OTG_FS_WKUP_IRQHandler(void) {
|
|
if(USB_OTG_dev.cfg.low_power) {
|
|
*(uint32_t *)(0xE000ED10) &= 0xFFFFFFF9 ;
|
|
SystemInit();
|
|
USB_OTG_UngateClock(&USB_OTG_dev);
|
|
}
|
|
EXTI_ClearITPendingBit(EXTI_Line18);
|
|
}
|
|
|
|
void OTG_FS_IRQHandler(void) {
|
|
USBD_OTG_ISR_Handler (&USB_OTG_dev);
|
|
} |