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.
 
 
 
 
 
 

29 lines
377 B

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