diff options
| author | hathach <[email protected]> | 2022-04-03 20:44:16 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-04-03 20:44:16 +0700 |
| commit | 7ea75d3c09d1afd4db5374c89f715d8ff6c1d414 (patch) | |
| tree | d3038cf9d28f5498d7fbf34306a827fd0a8effb9 | |
| parent | f6851cf18764a615f83bb782973bb3ea25e9089c (diff) | |
use pio usb host init
| m--------- | lib/Pico-PIO-USB | 0 | ||||
| -rw-r--r-- | src/portable/raspberrypi/pio_usb/hcd_pio_usb.c | 5 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/Pico-PIO-USB b/lib/Pico-PIO-USB -Subproject 7d8df447c4c5d0515f2ab9f10b28ac92d7cc78d +Subproject b507f95de457d5dc14fb15fd6481ef748c6e334 diff --git a/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c b/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c index dc52870e9..c2ac2c706 100644 --- a/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c +++ b/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c @@ -50,9 +50,8 @@ static pio_usb_configuration_t pio_host_config = PIO_USB_DEFAULT_CONFIG; //--------------------------------------------------------------------+ bool hcd_init(uint8_t rhport) { - // To run USB SOF interrupt in core1, create alarm pool in core1. - pio_host_config.alarm_pool = (void*)alarm_pool_create(2, 1); - (void) pio_usb_host_init(&pio_host_config); + // To run USB SOF interrupt in core1, call this init in core1 + pio_usb_host_controller_init(&pio_host_config); return true; } |
