rp2040: requested code mode in rp2040_usb.h
This commit is contained in:
parent
e00178a1af
commit
999ef227d0
|
@ -71,13 +71,6 @@ struct hw_endpoint
|
||||||
uint len;
|
uint len;
|
||||||
// Amount of data with the hardware
|
// Amount of data with the hardware
|
||||||
uint transfer_size;
|
uint transfer_size;
|
||||||
#ifdef RP2040_USB_HOST_MODE
|
|
||||||
// Only needed for host mode
|
|
||||||
bool last_buf;
|
|
||||||
// HOST BUG. Host will incorrect write status to top half of buffer
|
|
||||||
// control register when doing transfers > 1 packet
|
|
||||||
uint8_t buf_sel;
|
|
||||||
#endif
|
|
||||||
// User buffer in main memory
|
// User buffer in main memory
|
||||||
uint8_t *user_buf;
|
uint8_t *user_buf;
|
||||||
|
|
||||||
|
@ -87,6 +80,11 @@ struct hw_endpoint
|
||||||
uint8_t transfer_type;
|
uint8_t transfer_type;
|
||||||
|
|
||||||
#ifdef RP2040_USB_HOST_MODE
|
#ifdef RP2040_USB_HOST_MODE
|
||||||
|
// Only needed for host mode
|
||||||
|
bool last_buf;
|
||||||
|
// HOST BUG. Host will incorrect write status to top half of buffer
|
||||||
|
// control register when doing transfers > 1 packet
|
||||||
|
uint8_t buf_sel;
|
||||||
// Only needed for host
|
// Only needed for host
|
||||||
uint8_t dev_addr;
|
uint8_t dev_addr;
|
||||||
bool sent_setup;
|
bool sent_setup;
|
||||||
|
|
Loading…
Reference in New Issue