usbh always retry control transfer (max 3) in case of XFER_RESULT_FAILED.

added tuh_connected()
This commit is contained in:
hathach
2025-02-17 22:40:19 +07:00
parent 18d566b94c
commit 792a446405
6 changed files with 125 additions and 109 deletions

View File

@@ -302,9 +302,9 @@ typedef enum {
enum {
CONTROL_STAGE_IDLE = 0,
CONTROL_STAGE_SETUP,
CONTROL_STAGE_DATA,
CONTROL_STAGE_ACK
CONTROL_STAGE_SETUP, // 1
CONTROL_STAGE_DATA, // 2
CONTROL_STAGE_ACK // 3
};
enum {