/* Send handshake to PC until we get a valid response.  */
enum adp_handshake_status adp_wait_for_handshake(void)
/* Send handshake to PC until we get a valid response.  */
enum adp_handshake_status adp_wait_for_handshake(void)
{
	uint8_t handshake_status;
	while (adp_request_handshake(ADP_VERSION, ADP_HANDSHAKE_OPTIONS_GPIO, &handshake_status) == false) {
	}
	return ((enum adp_handshake_status)handshake_status);
}