mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 05:42:56 +00:00
add hcd abort xfer for rp2040 pio usb
This commit is contained in:
parent
c122e9df73
commit
f295aaf185
@ -54,19 +54,19 @@
|
||||
// default to pin on Adafruit Feather rp2040 USB Host or Tester if defined
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
// #define USE_ADAFRUIT_RP2040_TESTER
|
||||
#ifdef USE_ADAFRUIT_RP2040_TESTER
|
||||
#define PICO_DEFAULT_PIO_USB_DP_PIN 20
|
||||
#define PICO_DEFAULT_PIO_USB_VBUSEN_PIN 22
|
||||
// #define USE_ADAFRUIT_FEATHER_RP2040_USBHOST
|
||||
#ifdef USE_ADAFRUIT_FEATHER_RP2040_USBHOST
|
||||
#define PICO_DEFAULT_PIO_USB_DP_PIN 16
|
||||
#define PICO_DEFAULT_PIO_USB_VBUSEN_PIN 18
|
||||
#endif
|
||||
|
||||
#ifndef PICO_DEFAULT_PIO_USB_DP_PIN
|
||||
#define PICO_DEFAULT_PIO_USB_DP_PIN 16
|
||||
#define PICO_DEFAULT_PIO_USB_DP_PIN 20
|
||||
#endif
|
||||
|
||||
// VBUS enable pin and its active state
|
||||
#ifndef PICO_DEFAULT_PIO_USB_VBUSEN_PIN
|
||||
#define PICO_DEFAULT_PIO_USB_VBUSEN_PIN 18
|
||||
#define PICO_DEFAULT_PIO_USB_VBUSEN_PIN 22
|
||||
#endif
|
||||
|
||||
// VBUS enable state
|
||||
|
@ -139,11 +139,8 @@ bool hcd_edpt_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr, uint8_t *
|
||||
}
|
||||
|
||||
bool hcd_edpt_abort_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr) {
|
||||
(void) rhport;
|
||||
(void) dev_addr;
|
||||
(void) ep_addr;
|
||||
// TODO not implemented yet
|
||||
return false;
|
||||
uint8_t const pio_rhport = RHPORT_PIO(rhport);
|
||||
return pio_usb_host_endpoint_abort_transfer(pio_rhport, dev_addr, ep_addr);
|
||||
}
|
||||
|
||||
bool hcd_setup_send(uint8_t rhport, uint8_t dev_addr, uint8_t const setup_packet[8])
|
||||
|
@ -54,7 +54,7 @@ deps_optional = {
|
||||
'950819b7de9b32f92c3edf396bc5ffb8d66e7009',
|
||||
'kinetis_k32l2 kinetis_kl lpc51 lpc54 lpc55 mcx imxrt'],
|
||||
'hw/mcu/raspberry_pi/Pico-PIO-USB': ['https://github.com/sekigon-gonnoc/Pico-PIO-USB.git',
|
||||
'58879cfa0eca5725d8db6443ec17f8896a321042',
|
||||
'd00a10a8c425d0d40f81b87169102944b01f3bb3',
|
||||
'rp2040'],
|
||||
'hw/mcu/renesas/fsp': ['https://github.com/renesas/fsp.git',
|
||||
'8dc14709f2a6518b43f71efad70d900b7718d9f1',
|
||||
|
Loading…
x
Reference in New Issue
Block a user