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.
|
- #include "misc.h"
-
- #include <usbd_cdc_if.h>
- #include <usb_device.h>
-
- void
- Error_Handler(void)
- {
- /* XXX - handle error */
- }
-
- /*
- * Wait for a device to connect to the VCP
- */
- void
- wait_for_vcp(void)
- {
-
- for (;;) {
- if (vcp_status(&hUsbDeviceFS.request))
- break;
- }
- }
|