remove references to different cores
This commit is contained in:
parent
74a8f9c1c5
commit
c056b4e249
4 changed files with 2 additions and 6 deletions
|
|
@ -54,8 +54,6 @@ void setup() {
|
||||||
rp2040_configure_pio_usb();
|
rp2040_configure_pio_usb();
|
||||||
|
|
||||||
// run host stack on controller (rhport) 1
|
// run host stack on controller (rhport) 1
|
||||||
// Note: For rp2040 pico-pio-usb, calling USBHost.begin() on core1 will have most of the
|
|
||||||
// host bit-banging processing works done in core1 to free up core0 for other works
|
|
||||||
USBHost.begin(1);
|
USBHost.begin(1);
|
||||||
delay(3000);
|
delay(3000);
|
||||||
Serial.print("USB D+ Pin:");
|
Serial.print("USB D+ Pin:");
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@
|
||||||
#ifdef ARDUINO_ARCH_RP2040
|
#ifdef ARDUINO_ARCH_RP2040
|
||||||
static void rp2040_configure_pio_usb(void) {
|
static void rp2040_configure_pio_usb(void) {
|
||||||
//while ( !Serial ) delay(10); // wait for native usb
|
//while ( !Serial ) delay(10); // wait for native usb
|
||||||
Serial.println("Core1 setup to run TinyUSB host with pio-usb");
|
Serial.println("Setup to run TinyUSB host with pio-usb");
|
||||||
|
|
||||||
#ifdef PIN_5V_EN
|
#ifdef PIN_5V_EN
|
||||||
pinMode(PIN_5V_EN, OUTPUT);
|
pinMode(PIN_5V_EN, OUTPUT);
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,6 @@ void setup() {
|
||||||
rp2040_configure_pio_usb();
|
rp2040_configure_pio_usb();
|
||||||
|
|
||||||
// run host stack on controller (rhport) 1
|
// run host stack on controller (rhport) 1
|
||||||
// Note: For rp2040 pico-pio-usb, calling USBHost.begin() on core1 will have most of the
|
|
||||||
// host bit-banging processing works done in core1 to free up core0 for other works
|
|
||||||
USBHost.begin(1);
|
USBHost.begin(1);
|
||||||
delay(3000);
|
delay(3000);
|
||||||
Serial.print("USB D+ Pin:");
|
Serial.print("USB D+ Pin:");
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@
|
||||||
#ifdef ARDUINO_ARCH_RP2040
|
#ifdef ARDUINO_ARCH_RP2040
|
||||||
static void rp2040_configure_pio_usb(void) {
|
static void rp2040_configure_pio_usb(void) {
|
||||||
//while ( !Serial ) delay(10); // wait for native usb
|
//while ( !Serial ) delay(10); // wait for native usb
|
||||||
Serial.println("Core1 setup to run TinyUSB host with pio-usb");
|
Serial.println("Setup to run TinyUSB host with pio-usb");
|
||||||
|
|
||||||
#ifdef PIN_5V_EN
|
#ifdef PIN_5V_EN
|
||||||
pinMode(PIN_5V_EN, OUTPUT);
|
pinMode(PIN_5V_EN, OUTPUT);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue