This fork re-enables FRDM boards and adds WebUSB CDC functionality
Fork of USBDevice_STM32F103 by
Diff: USBDevice/USBHAL_STM32F1.cpp
- Revision:
- 71:4e9a69384cac
- Parent:
- 65:48fe9050cb4a
diff -r e410de636542 -r 4e9a69384cac USBDevice/USBHAL_STM32F1.cpp --- a/USBDevice/USBHAL_STM32F1.cpp Fri Nov 25 18:31:08 2016 +0000 +++ b/USBDevice/USBHAL_STM32F1.cpp Sun Jan 08 12:39:00 2017 +0000 @@ -18,6 +18,8 @@ #include "USBDevice.h" +#if defined(TARGET_STM32F1) | defined(TARGET_STM32F4) + #define USB_LP_IRQn USB_LP_CAN1_RX0_IRQn const uint8_t PCD_EP_TYPE_CTRL = EP_TYPE_CTRL; const uint8_t PCD_EP_TYPE_INTR = EP_TYPE_INTR; @@ -379,3 +381,5 @@ SCB->SCR |= (uint32_t)((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); } } + +#endif