M2M_API_RESULT m2m_hw_usb_wait_attach_forever(void)
Description: the function sets the USB port in blocking on mode, waiting forever the USB cable attach event, if not already happened. The programmer can use this function to wait USB cable attach before proceeding.
This API is also used by the m2m_usb_open() function when the USB port is in blocking on mode, refer to m2m_hw_usb_set_open_blocking().
Return
value:
refer to
M2M_API_RESULT enum