mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-15 03:40:19 +00:00
add hcd_frame_number() for pio-usb host
This commit is contained in:
parent
fe77b6713b
commit
6284f2d722
0
.gitmodules
vendored
0
.gitmodules
vendored
@ -49,7 +49,10 @@
|
||||
#define UART_RX_PIN PICO_DEFAULT_UART_RX_PIN
|
||||
#endif
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// PIO_USB
|
||||
// default to pin on Adafruit Feather rp2040 USB Host or Tester if defined
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
// #define USE_ADAFRUIT_RP2040_TESTER
|
||||
#ifdef USE_ADAFRUIT_RP2040_TESTER
|
||||
@ -57,7 +60,6 @@
|
||||
#define PICO_DEFAULT_PIO_USB_VBUSEN_PIN 22
|
||||
#endif
|
||||
|
||||
// following default to pin on Adafruit Feather rp2040 USB Host
|
||||
#ifndef PICO_DEFAULT_PIO_USB_DP_PIN
|
||||
#define PICO_DEFAULT_PIO_USB_DP_PIN 16
|
||||
#endif
|
||||
|
@ -105,7 +105,7 @@ void hcd_device_close(uint8_t rhport, uint8_t dev_addr)
|
||||
uint32_t hcd_frame_number(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
return 0;
|
||||
return pio_usb_host_get_frame_number();
|
||||
}
|
||||
|
||||
void hcd_int_enable(uint8_t rhport)
|
||||
|
@ -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',
|
||||
'c3715ce94b6f6391856de56081d4d9b3e98fa93d',
|
||||
'58879cfa0eca5725d8db6443ec17f8896a321042',
|
||||
'rp2040'],
|
||||
'hw/mcu/renesas/fsp': ['https://github.com/renesas/fsp.git',
|
||||
'8dc14709f2a6518b43f71efad70d900b7718d9f1',
|
||||
|
Loading…
x
Reference in New Issue
Block a user