mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-05 18:40:28 +00:00
use pio usb host init
This commit is contained in:
parent
f6851cf187
commit
7ea75d3c09
@ -1 +1 @@
|
||||
Subproject commit 7d8df447c4c5d0515f2ab9f10b28ac92d7cc78df
|
||||
Subproject commit b507f95de457d5dc14fb15fd6481ef748c6e3342
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user