mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-22 10:20:55 +00:00
Merge pull request #2130 from hathach/hcd-frame-pio-usb
add hcd_frame_number() for pio-usb host
This commit is contained in:
commit
6e1eec908a
0
.gitmodules
vendored
0
.gitmodules
vendored
@ -49,7 +49,10 @@
|
|||||||
#define UART_RX_PIN PICO_DEFAULT_UART_RX_PIN
|
#define UART_RX_PIN PICO_DEFAULT_UART_RX_PIN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------+
|
||||||
// PIO_USB
|
// PIO_USB
|
||||||
|
// default to pin on Adafruit Feather rp2040 USB Host or Tester if defined
|
||||||
|
//--------------------------------------------------------------------+
|
||||||
|
|
||||||
// #define USE_ADAFRUIT_RP2040_TESTER
|
// #define USE_ADAFRUIT_RP2040_TESTER
|
||||||
#ifdef USE_ADAFRUIT_RP2040_TESTER
|
#ifdef USE_ADAFRUIT_RP2040_TESTER
|
||||||
@ -57,7 +60,6 @@
|
|||||||
#define PICO_DEFAULT_PIO_USB_VBUSEN_PIN 22
|
#define PICO_DEFAULT_PIO_USB_VBUSEN_PIN 22
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// following default to pin on Adafruit Feather rp2040 USB Host
|
|
||||||
#ifndef PICO_DEFAULT_PIO_USB_DP_PIN
|
#ifndef PICO_DEFAULT_PIO_USB_DP_PIN
|
||||||
#define PICO_DEFAULT_PIO_USB_DP_PIN 16
|
#define PICO_DEFAULT_PIO_USB_DP_PIN 16
|
||||||
#endif
|
#endif
|
||||||
|
@ -105,7 +105,7 @@ void hcd_device_close(uint8_t rhport, uint8_t dev_addr)
|
|||||||
uint32_t hcd_frame_number(uint8_t rhport)
|
uint32_t hcd_frame_number(uint8_t rhport)
|
||||||
{
|
{
|
||||||
(void) rhport;
|
(void) rhport;
|
||||||
return 0;
|
return pio_usb_host_get_frame_number();
|
||||||
}
|
}
|
||||||
|
|
||||||
void hcd_int_enable(uint8_t rhport)
|
void hcd_int_enable(uint8_t rhport)
|
||||||
|
@ -54,7 +54,7 @@ deps_optional = {
|
|||||||
'950819b7de9b32f92c3edf396bc5ffb8d66e7009',
|
'950819b7de9b32f92c3edf396bc5ffb8d66e7009',
|
||||||
'kinetis_k32l2 kinetis_kl lpc51 lpc54 lpc55 mcx imxrt'],
|
'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',
|
'hw/mcu/raspberry_pi/Pico-PIO-USB': ['https://github.com/sekigon-gonnoc/Pico-PIO-USB.git',
|
||||||
'c3715ce94b6f6391856de56081d4d9b3e98fa93d',
|
'58879cfa0eca5725d8db6443ec17f8896a321042',
|
||||||
'rp2040'],
|
'rp2040'],
|
||||||
'hw/mcu/renesas/fsp': ['https://github.com/renesas/fsp.git',
|
'hw/mcu/renesas/fsp': ['https://github.com/renesas/fsp.git',
|
||||||
'8dc14709f2a6518b43f71efad70d900b7718d9f1',
|
'8dc14709f2a6518b43f71efad70d900b7718d9f1',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user