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() {
119119 pio_cfg.pin_dp = PIN_USB_HOST_DP;
120120
121121#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
123125 pio_cfg.sm_tx = 3 ;
124126 pio_cfg.sm_rx = 2 ;
125127 pio_cfg.sm_eop = 3 ;
126128 pio_cfg.pio_rx_num = 0 ;
127129 pio_cfg.pio_tx_num = 1 ;
128130 pio_cfg.tx_ch = 9 ;
129- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
131+ #endif
130132
131133 USBHost.configure_pio_usb (1 , &pio_cfg);
132134
Original file line number Diff line number Diff line change @@ -88,14 +88,16 @@ void setup1() {
8888 pio_cfg.pin_dp = PIN_USB_HOST_DP;
8989
9090#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
9294 pio_cfg.sm_tx = 3 ;
9395 pio_cfg.sm_rx = 2 ;
9496 pio_cfg.sm_eop = 3 ;
9597 pio_cfg.pio_rx_num = 0 ;
9698 pio_cfg.pio_tx_num = 1 ;
9799 pio_cfg.tx_ch = 9 ;
98- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
100+ #endif
99101
100102 USBHost.configure_pio_usb (1 , &pio_cfg);
101103
Original file line number Diff line number Diff line change @@ -115,14 +115,16 @@ void setup1() {
115115 pio_cfg.pin_dp = PIN_USB_HOST_DP;
116116
117117#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
119121 pio_cfg.sm_tx = 3 ;
120122 pio_cfg.sm_rx = 2 ;
121123 pio_cfg.sm_eop = 3 ;
122124 pio_cfg.pio_rx_num = 0 ;
123125 pio_cfg.pio_tx_num = 1 ;
124126 pio_cfg.tx_ch = 9 ;
125- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
127+ #endif
126128
127129 USBHost.configure_pio_usb (1 , &pio_cfg);
128130
Original file line number Diff line number Diff line change @@ -122,14 +122,16 @@ void setup1() {
122122 pio_cfg.pin_dp = PIN_USB_HOST_DP;
123123
124124#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
126128 pio_cfg.sm_tx = 3 ;
127129 pio_cfg.sm_rx = 2 ;
128130 pio_cfg.sm_eop = 3 ;
129131 pio_cfg.pio_rx_num = 0 ;
130132 pio_cfg.pio_tx_num = 1 ;
131133 pio_cfg.tx_ch = 9 ;
132- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
134+ #endif
133135
134136 USBHost.configure_pio_usb (1 , &pio_cfg);
135137
Original file line number Diff line number Diff line change @@ -107,14 +107,16 @@ void setup1() {
107107 pio_cfg.pin_dp = PIN_USB_HOST_DP;
108108
109109#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
111113 pio_cfg.sm_tx = 3 ;
112114 pio_cfg.sm_rx = 2 ;
113115 pio_cfg.sm_eop = 3 ;
114116 pio_cfg.pio_rx_num = 0 ;
115117 pio_cfg.pio_tx_num = 1 ;
116118 pio_cfg.tx_ch = 9 ;
117- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
119+ #endif
118120
119121 USBHost.configure_pio_usb (1 , &pio_cfg);
120122
Original file line number Diff line number Diff line change @@ -135,14 +135,16 @@ void setup1() {
135135 pio_cfg.pin_dp = PIN_USB_HOST_DP;
136136
137137#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
139141 pio_cfg.sm_tx = 3 ;
140142 pio_cfg.sm_rx = 2 ;
141143 pio_cfg.sm_eop = 3 ;
142144 pio_cfg.pio_rx_num = 0 ;
143145 pio_cfg.pio_tx_num = 1 ;
144146 pio_cfg.tx_ch = 9 ;
145- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
147+ #endif
146148
147149 USBHost.configure_pio_usb (1 , &pio_cfg);
148150
Original file line number Diff line number Diff line change @@ -102,14 +102,16 @@ void setup1() {
102102 pio_cfg.pin_dp = PIN_USB_HOST_DP;
103103
104104#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
106108 pio_cfg.sm_tx = 3 ;
107109 pio_cfg.sm_rx = 2 ;
108110 pio_cfg.sm_eop = 3 ;
109111 pio_cfg.pio_rx_num = 0 ;
110112 pio_cfg.pio_tx_num = 1 ;
111113 pio_cfg.tx_ch = 9 ;
112- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
114+ #endif
113115
114116 USBHost.configure_pio_usb (1 , &pio_cfg);
115117
Original file line number Diff line number Diff line change @@ -117,14 +117,16 @@ void setup1() {
117117 pio_cfg.pin_dp = PIN_USB_HOST_DP;
118118
119119#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
121123 pio_cfg.sm_tx = 3 ;
122124 pio_cfg.sm_rx = 2 ;
123125 pio_cfg.sm_eop = 3 ;
124126 pio_cfg.pio_rx_num = 0 ;
125127 pio_cfg.pio_tx_num = 1 ;
126128 pio_cfg.tx_ch = 9 ;
127- #endif /* ARDUINO_RASPBERRY_PI_PICO_W */
129+ #endif
128130
129131 USBHost.configure_pio_usb (1 , &pio_cfg);
130132
You can’t perform that action at this time.
0 commit comments