diff options
| author | Peter Lawrence <[email protected]> | 2021-02-25 08:45:47 -0600 |
|---|---|---|
| committer | Peter Lawrence <[email protected]> | 2021-02-25 08:45:47 -0600 |
| commit | 999ef227d0151bae5db09da7a9b3ed3be20ef891 (patch) | |
| tree | a3d4e7cb89748826d7e3340e73e9d2997789a0ae /src | |
| parent | e00178a1afefc9b0b2d4fc440a6db536a4bb7afe (diff) | |
rp2040: requested code mode in rp2040_usb.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/raspberrypi/rp2040/rp2040_usb.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/portable/raspberrypi/rp2040/rp2040_usb.h b/src/portable/raspberrypi/rp2040/rp2040_usb.h index db9845491..3448d2539 100644 --- a/src/portable/raspberrypi/rp2040/rp2040_usb.h +++ b/src/portable/raspberrypi/rp2040/rp2040_usb.h @@ -71,13 +71,6 @@ struct hw_endpoint uint len; // Amount of data with the hardware 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 uint8_t *user_buf; @@ -87,6 +80,11 @@ struct hw_endpoint uint8_t transfer_type; #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 uint8_t dev_addr; bool sent_setup; |
