File tree Expand file tree Collapse file tree 8 files changed +32
-16
lines changed Expand file tree Collapse file tree 8 files changed +32
-16
lines changed Original file line number Diff line number Diff line change @@ -119,14 +119,16 @@ void setup1() {
119
119
pio_cfg.pin_dp = PIN_USB_HOST_DP;
120
120
121
121
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
122
- /* https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46 */
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
123
125
pio_cfg.sm_tx = 3 ;
124
126
pio_cfg.sm_rx = 2 ;
125
127
pio_cfg.sm_eop = 3 ;
126
128
pio_cfg.pio_rx_num = 0 ;
127
129
pio_cfg.pio_tx_num = 1 ;
128
130
pio_cfg.tx_ch = 9 ;
129
- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
131
+ #endif
130
132
131
133
USBHost.configure_pio_usb (1 , &pio_cfg);
132
134
Original file line number Diff line number Diff line change @@ -88,14 +88,16 @@ void setup1() {
88
88
pio_cfg.pin_dp = PIN_USB_HOST_DP;
89
89
90
90
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
91
- /* https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46 */
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
92
94
pio_cfg.sm_tx = 3 ;
93
95
pio_cfg.sm_rx = 2 ;
94
96
pio_cfg.sm_eop = 3 ;
95
97
pio_cfg.pio_rx_num = 0 ;
96
98
pio_cfg.pio_tx_num = 1 ;
97
99
pio_cfg.tx_ch = 9 ;
98
- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
100
+ #endif
99
101
100
102
USBHost.configure_pio_usb (1 , &pio_cfg);
101
103
Original file line number Diff line number Diff line change @@ -115,14 +115,16 @@ void setup1() {
115
115
pio_cfg.pin_dp = PIN_USB_HOST_DP;
116
116
117
117
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
118
- /* https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46 */
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
119
121
pio_cfg.sm_tx = 3 ;
120
122
pio_cfg.sm_rx = 2 ;
121
123
pio_cfg.sm_eop = 3 ;
122
124
pio_cfg.pio_rx_num = 0 ;
123
125
pio_cfg.pio_tx_num = 1 ;
124
126
pio_cfg.tx_ch = 9 ;
125
- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
127
+ #endif
126
128
127
129
USBHost.configure_pio_usb (1 , &pio_cfg);
128
130
Original file line number Diff line number Diff line change @@ -122,14 +122,16 @@ void setup1() {
122
122
pio_cfg.pin_dp = PIN_USB_HOST_DP;
123
123
124
124
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
125
- /* https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46 */
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
126
128
pio_cfg.sm_tx = 3 ;
127
129
pio_cfg.sm_rx = 2 ;
128
130
pio_cfg.sm_eop = 3 ;
129
131
pio_cfg.pio_rx_num = 0 ;
130
132
pio_cfg.pio_tx_num = 1 ;
131
133
pio_cfg.tx_ch = 9 ;
132
- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
134
+ #endif
133
135
134
136
USBHost.configure_pio_usb (1 , &pio_cfg);
135
137
Original file line number Diff line number Diff line change @@ -107,14 +107,16 @@ void setup1() {
107
107
pio_cfg.pin_dp = PIN_USB_HOST_DP;
108
108
109
109
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
110
- /* https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46 */
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
111
113
pio_cfg.sm_tx = 3 ;
112
114
pio_cfg.sm_rx = 2 ;
113
115
pio_cfg.sm_eop = 3 ;
114
116
pio_cfg.pio_rx_num = 0 ;
115
117
pio_cfg.pio_tx_num = 1 ;
116
118
pio_cfg.tx_ch = 9 ;
117
- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
119
+ #endif
118
120
119
121
USBHost.configure_pio_usb (1 , &pio_cfg);
120
122
Original file line number Diff line number Diff line change @@ -135,14 +135,16 @@ void setup1() {
135
135
pio_cfg.pin_dp = PIN_USB_HOST_DP;
136
136
137
137
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
138
- /* https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46 */
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
139
141
pio_cfg.sm_tx = 3 ;
140
142
pio_cfg.sm_rx = 2 ;
141
143
pio_cfg.sm_eop = 3 ;
142
144
pio_cfg.pio_rx_num = 0 ;
143
145
pio_cfg.pio_tx_num = 1 ;
144
146
pio_cfg.tx_ch = 9 ;
145
- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
147
+ #endif
146
148
147
149
USBHost.configure_pio_usb (1 , &pio_cfg);
148
150
Original file line number Diff line number Diff line change @@ -102,14 +102,16 @@ void setup1() {
102
102
pio_cfg.pin_dp = PIN_USB_HOST_DP;
103
103
104
104
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
105
- /* https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46 */
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
106
108
pio_cfg.sm_tx = 3 ;
107
109
pio_cfg.sm_rx = 2 ;
108
110
pio_cfg.sm_eop = 3 ;
109
111
pio_cfg.pio_rx_num = 0 ;
110
112
pio_cfg.pio_tx_num = 1 ;
111
113
pio_cfg.tx_ch = 9 ;
112
- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
114
+ #endif
113
115
114
116
USBHost.configure_pio_usb (1 , &pio_cfg);
115
117
Original file line number Diff line number Diff line change @@ -117,14 +117,16 @@ void setup1() {
117
117
pio_cfg.pin_dp = PIN_USB_HOST_DP;
118
118
119
119
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
120
- /* https://github.com/sekigon-gonnoc/Pico-PIO-USB/issues/46 */
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
121
123
pio_cfg.sm_tx = 3 ;
122
124
pio_cfg.sm_rx = 2 ;
123
125
pio_cfg.sm_eop = 3 ;
124
126
pio_cfg.pio_rx_num = 0 ;
125
127
pio_cfg.pio_tx_num = 1 ;
126
128
pio_cfg.tx_ch = 9 ;
127
- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
129
+ #endif
128
130
129
131
USBHost.configure_pio_usb (1 , &pio_cfg);
130
132
You can’t perform that action at this time.
0 commit comments