From: Stefan BrĂ¼ns Date: Sun, 31 Dec 2017 06:51:53 +0000 (+0100) Subject: fx2lafw: Insert SYNCDELAYs where necessary according to TRM X-Git-Tag: sigrok-firmware-fx2lafw-0.1.6~6 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=57b6b3a357e22769e7cbb4416c93bedbdd0c0ec6;p=sigrok-firmware-fx2lafw.git fx2lafw: Insert SYNCDELAYs where necessary according to TRM --- diff --git a/fx2lafw.c b/fx2lafw.c index b99d77f4..629e28c0 100644 --- a/fx2lafw.c +++ b/fx2lafw.c @@ -104,7 +104,9 @@ static void send_fw_version(void) /* Send the message. */ EP0BCH = 0; + SYNCDELAY(); EP0BCL = sizeof(struct version_info); + SYNCDELAY(); } static void send_revid_version(void) @@ -117,7 +119,9 @@ static void send_revid_version(void) /* Send the message. */ EP0BCH = 0; + SYNCDELAY(); EP0BCL = 1; + SYNCDELAY(); } BOOL handle_vendorcommand(BYTE cmd) @@ -128,6 +132,7 @@ BOOL handle_vendorcommand(BYTE cmd) /* Tell hardware we are ready to receive data. */ vendor_command = cmd; EP0BCL = 0; + SYNCDELAY(); return TRUE; case CMD_GET_FW_VERSION: send_fw_version();