Skip to content

Commit 6284f2d

Browse files
committed
add hcd_frame_number() for pio-usb host
1 parent fe77b67 commit 6284f2d

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.gitmodules

Whitespace-only changes.

hw/bsp/rp2040/board.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,17 @@
4949
#define UART_RX_PIN PICO_DEFAULT_UART_RX_PIN
5050
#endif
5151

52+
//--------------------------------------------------------------------+
5253
// PIO_USB
54+
// default to pin on Adafruit Feather rp2040 USB Host or Tester if defined
55+
//--------------------------------------------------------------------+
5356

5457
// #define USE_ADAFRUIT_RP2040_TESTER
5558
#ifdef USE_ADAFRUIT_RP2040_TESTER
5659
#define PICO_DEFAULT_PIO_USB_DP_PIN 20
5760
#define PICO_DEFAULT_PIO_USB_VBUSEN_PIN 22
5861
#endif
5962

60-
// following default to pin on Adafruit Feather rp2040 USB Host
6163
#ifndef PICO_DEFAULT_PIO_USB_DP_PIN
6264
#define PICO_DEFAULT_PIO_USB_DP_PIN 16
6365
#endif

src/portable/raspberrypi/pio_usb/hcd_pio_usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void hcd_device_close(uint8_t rhport, uint8_t dev_addr)
105105
uint32_t hcd_frame_number(uint8_t rhport)
106106
{
107107
(void) rhport;
108-
return 0;
108+
return pio_usb_host_get_frame_number();
109109
}
110110

111111
void hcd_int_enable(uint8_t rhport)

tools/get_deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
'950819b7de9b32f92c3edf396bc5ffb8d66e7009',
5555
'kinetis_k32l2 kinetis_kl lpc51 lpc54 lpc55 mcx imxrt'],
5656
'hw/mcu/raspberry_pi/Pico-PIO-USB': ['https://github.com/sekigon-gonnoc/Pico-PIO-USB.git',
57-
'c3715ce94b6f6391856de56081d4d9b3e98fa93d',
57+
'58879cfa0eca5725d8db6443ec17f8896a321042',
5858
'rp2040'],
5959
'hw/mcu/renesas/fsp': ['https://github.com/renesas/fsp.git',
6060
'8dc14709f2a6518b43f71efad70d900b7718d9f1',

0 commit comments

Comments
 (0)