|
- /*
- * Code for initalizing USB CDC via the SYSINIT mechanism.
- */
-
- #include <sysinit.h>
-
- #include <usb_device.h>
-
- #if 1
- static void
- usb_cdc_init(const void *foo)
- {
-
- MX_USB_DEVICE_Init();
- }
-
- extern PCD_HandleTypeDef hpcd_USB_FS;
-
-
- void
- USB_LP_IRQHandler(void)
- {
-
- HAL_PCD_IRQHandler(&hpcd_USB_FS);
- }
-
- SYSINIT(abkdkd, SI_SUB_CONSOLE, SI_ORDER_FIRST, usb_cdc_init, NULL);
- #endif
|