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.
 
 
 
 
 
 

25 lines
271 B

  1. #include "misc.h"
  2. #include <usbd_cdc_if.h>
  3. #include <usb_device.h>
  4. void
  5. Error_Handler(void)
  6. {
  7. /* XXX - handle error */
  8. }
  9. /*
  10. * Wait for a device to connect to the VCP
  11. */
  12. void
  13. wait_for_vcp(void)
  14. {
  15. for (;;) {
  16. if (vcp_status(&hUsbDeviceFS.request))
  17. break;
  18. }
  19. }