Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
370 B

  1. /*
  2. * Code for initalizing USB CDC via the SYSINIT mechanism.
  3. */
  4. #include <sysinit.h>
  5. #include <usb_device.h>
  6. static void
  7. usb_cdc_init(const void *foo)
  8. {
  9. MX_USB_DEVICE_Init();
  10. }
  11. extern PCD_HandleTypeDef hpcd_USB_FS;
  12. void
  13. USB_LP_IRQHandler(void)
  14. {
  15. HAL_PCD_IRQHandler(&hpcd_USB_FS);
  16. }
  17. SYSINIT(usb_cdc_init, SI_SUB_CONSOLE, SI_ORDER_FIRST, usb_cdc_init, NULL);