File tree Expand file tree Collapse file tree 8 files changed +104
-0
lines changed Expand file tree Collapse file tree 8 files changed +104
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,19 @@ void setup1() {
117
117
118
118
pio_usb_configuration_t pio_cfg = PIO_USB_DEFAULT_CONFIG;
119
119
pio_cfg.pin_dp = PIN_USB_HOST_DP;
120
+
121
+ #if defined(ARDUINO_RASPBERRY_PI_PICO_W)
122
+ // For pico-w, PIO is also used to communicate with cyw43
123
+ // Therefore we need to alternate the pio-usb configuration
124
+ // details https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46
125
+ pio_cfg.sm_tx = 3 ;
126
+ pio_cfg.sm_rx = 2 ;
127
+ pio_cfg.sm_eop = 3 ;
128
+ pio_cfg.pio_rx_num = 0 ;
129
+ pio_cfg.pio_tx_num = 1 ;
130
+ pio_cfg.tx_ch = 9 ;
131
+ #endif
132
+
120
133
USBHost.configure_pio_usb (1 , &pio_cfg);
121
134
122
135
// run host stack on controller (rhport) 1
Original file line number Diff line number Diff line change @@ -86,6 +86,19 @@ void setup1() {
86
86
87
87
pio_usb_configuration_t pio_cfg = PIO_USB_DEFAULT_CONFIG;
88
88
pio_cfg.pin_dp = PIN_USB_HOST_DP;
89
+
90
+ #if defined(ARDUINO_RASPBERRY_PI_PICO_W)
91
+ // For pico-w, PIO is also used to communicate with cyw43
92
+ // Therefore we need to alternate the pio-usb configuration
93
+ // details https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46
94
+ pio_cfg.sm_tx = 3 ;
95
+ pio_cfg.sm_rx = 2 ;
96
+ pio_cfg.sm_eop = 3 ;
97
+ pio_cfg.pio_rx_num = 0 ;
98
+ pio_cfg.pio_tx_num = 1 ;
99
+ pio_cfg.tx_ch = 9 ;
100
+ #endif
101
+
89
102
USBHost.configure_pio_usb (1 , &pio_cfg);
90
103
91
104
// run host stack on controller (rhport) 1
Original file line number Diff line number Diff line change @@ -113,6 +113,19 @@ void setup1() {
113
113
114
114
pio_usb_configuration_t pio_cfg = PIO_USB_DEFAULT_CONFIG;
115
115
pio_cfg.pin_dp = PIN_USB_HOST_DP;
116
+
117
+ #if defined(ARDUINO_RASPBERRY_PI_PICO_W)
118
+ // For pico-w, PIO is also used to communicate with cyw43
119
+ // Therefore we need to alternate the pio-usb configuration
120
+ // details https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46
121
+ pio_cfg.sm_tx = 3 ;
122
+ pio_cfg.sm_rx = 2 ;
123
+ pio_cfg.sm_eop = 3 ;
124
+ pio_cfg.pio_rx_num = 0 ;
125
+ pio_cfg.pio_tx_num = 1 ;
126
+ pio_cfg.tx_ch = 9 ;
127
+ #endif
128
+
116
129
USBHost.configure_pio_usb (1 , &pio_cfg);
117
130
118
131
// run host stack on controller (rhport) 1
Original file line number Diff line number Diff line change @@ -120,6 +120,19 @@ void setup1() {
120
120
121
121
pio_usb_configuration_t pio_cfg = PIO_USB_DEFAULT_CONFIG;
122
122
pio_cfg.pin_dp = PIN_USB_HOST_DP;
123
+
124
+ #if defined(ARDUINO_RASPBERRY_PI_PICO_W)
125
+ // For pico-w, PIO is also used to communicate with cyw43
126
+ // Therefore we need to alternate the pio-usb configuration
127
+ // details https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46
128
+ pio_cfg.sm_tx = 3 ;
129
+ pio_cfg.sm_rx = 2 ;
130
+ pio_cfg.sm_eop = 3 ;
131
+ pio_cfg.pio_rx_num = 0 ;
132
+ pio_cfg.pio_tx_num = 1 ;
133
+ pio_cfg.tx_ch = 9 ;
134
+ #endif
135
+
123
136
USBHost.configure_pio_usb (1 , &pio_cfg);
124
137
125
138
// run host stack on controller (rhport) 1
Original file line number Diff line number Diff line change @@ -105,6 +105,19 @@ void setup1() {
105
105
106
106
pio_usb_configuration_t pio_cfg = PIO_USB_DEFAULT_CONFIG;
107
107
pio_cfg.pin_dp = PIN_USB_HOST_DP;
108
+
109
+ #if defined(ARDUINO_RASPBERRY_PI_PICO_W)
110
+ // For pico-w, PIO is also used to communicate with cyw43
111
+ // Therefore we need to alternate the pio-usb configuration
112
+ // details https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46
113
+ pio_cfg.sm_tx = 3 ;
114
+ pio_cfg.sm_rx = 2 ;
115
+ pio_cfg.sm_eop = 3 ;
116
+ pio_cfg.pio_rx_num = 0 ;
117
+ pio_cfg.pio_tx_num = 1 ;
118
+ pio_cfg.tx_ch = 9 ;
119
+ #endif
120
+
108
121
USBHost.configure_pio_usb (1 , &pio_cfg);
109
122
110
123
// run host stack on controller (rhport) 1
Original file line number Diff line number Diff line change @@ -133,6 +133,19 @@ void setup1() {
133
133
134
134
pio_usb_configuration_t pio_cfg = PIO_USB_DEFAULT_CONFIG;
135
135
pio_cfg.pin_dp = PIN_USB_HOST_DP;
136
+
137
+ #if defined(ARDUINO_RASPBERRY_PI_PICO_W)
138
+ // For pico-w, PIO is also used to communicate with cyw43
139
+ // Therefore we need to alternate the pio-usb configuration
140
+ // details https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46
141
+ pio_cfg.sm_tx = 3 ;
142
+ pio_cfg.sm_rx = 2 ;
143
+ pio_cfg.sm_eop = 3 ;
144
+ pio_cfg.pio_rx_num = 0 ;
145
+ pio_cfg.pio_tx_num = 1 ;
146
+ pio_cfg.tx_ch = 9 ;
147
+ #endif
148
+
136
149
USBHost.configure_pio_usb (1 , &pio_cfg);
137
150
138
151
// run host stack on controller (rhport) 1
Original file line number Diff line number Diff line change @@ -100,6 +100,19 @@ void setup1() {
100
100
101
101
pio_usb_configuration_t pio_cfg = PIO_USB_DEFAULT_CONFIG;
102
102
pio_cfg.pin_dp = PIN_USB_HOST_DP;
103
+
104
+ #if defined(ARDUINO_RASPBERRY_PI_PICO_W)
105
+ // For pico-w, PIO is also used to communicate with cyw43
106
+ // Therefore we need to alternate the pio-usb configuration
107
+ // details https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46
108
+ pio_cfg.sm_tx = 3 ;
109
+ pio_cfg.sm_rx = 2 ;
110
+ pio_cfg.sm_eop = 3 ;
111
+ pio_cfg.pio_rx_num = 0 ;
112
+ pio_cfg.pio_tx_num = 1 ;
113
+ pio_cfg.tx_ch = 9 ;
114
+ #endif
115
+
103
116
USBHost.configure_pio_usb (1 , &pio_cfg);
104
117
105
118
// run host stack on controller (rhport) 1
Original file line number Diff line number Diff line change @@ -115,6 +115,19 @@ void setup1() {
115
115
116
116
pio_usb_configuration_t pio_cfg = PIO_USB_DEFAULT_CONFIG;
117
117
pio_cfg.pin_dp = PIN_USB_HOST_DP;
118
+
119
+ #if defined(ARDUINO_RASPBERRY_PI_PICO_W)
120
+ // For pico-w, PIO is also used to communicate with cyw43
121
+ // Therefore we need to alternate the pio-usb configuration
122
+ // details https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46
123
+ pio_cfg.sm_tx = 3 ;
124
+ pio_cfg.sm_rx = 2 ;
125
+ pio_cfg.sm_eop = 3 ;
126
+ pio_cfg.pio_rx_num = 0 ;
127
+ pio_cfg.pio_tx_num = 1 ;
128
+ pio_cfg.tx_ch = 9 ;
129
+ #endif
130
+
118
131
USBHost.configure_pio_usb (1 , &pio_cfg);
119
132
120
133
// run host stack on controller (rhport) 1
You can’t perform that action at this time.
0 commit comments