change vendor device to use edpt stream API

This commit is contained in:
hathach
2024-09-10 10:44:22 +07:00
parent 72ee3b4f48
commit 867f17acea
4 changed files with 137 additions and 188 deletions

View File

@@ -42,10 +42,10 @@ typedef struct TU_ATTR_PACKED
}tu_edpt_state_t;
typedef struct {
bool is_host; // host or device most
bool is_host; // host or device
union {
uint8_t daddr;
uint8_t rhport;
uint8_t daddr; // host mode
uint8_t rhport; // device mode
uint8_t hwid;
};
uint8_t ep_addr;