void m2m_hw_usb_set_open_blocking(UINT8 on_off)
Description: the function sets the opening mode feature of the USB port. The opening mode can be set in blocking on or blocking off mode.
In blocking on, the m2m_usb_open() API waits forever on the USB port if the USB cable is not plugged in. When the USB cable is plugged in, the API returns the control to the calling task. In blocking off, the control is returned regardless if the cable is connected or not to the USB port. The blocking on is the default mode.
Parameters:
on_off:
1 sets blocking on; ≠ 1 sets blocking off (it is suggested to use 0, for
future
compatibility).