You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If CYW43_WL_GPIO_VBUS_PIN is defined then a CYW43 GPIO has to be used to read VBUS.
101
+
// This can be passed to cyw43_arch_gpio_get to determine if the device is battery powered.
102
+
// PICO_VBUS_PIN and CYW43_WL_GPIO_VBUS_PIN should not both be defined.
103
+
104
+
// no CYW43_WL_GPIO_VBUS_PIN
105
+
106
+
// If CYW43_USES_VSYS_PIN is defined then CYW43 uses the VSYS GPIO (defined by PICO_VSYS_PIN) for other purposes.
107
+
// If this is the case, to use the VSYS GPIO it's necessary to ensure CYW43 is not using it.
108
+
// This can be achieved by wrapping the use of the VSYS GPIO in cyw43_thread_enter / cyw43_thread_exit.
109
+
110
+
// no CYW43_USES_VSYS_PIN
111
+
112
+
// The GPIO Pin used to read VBUS to determine if the device is battery powered.
113
+
#ifndefPICO_VBUS_PIN
114
+
#definePICO_VBUS_PIN 24
115
+
#endif
116
+
117
+
// The GPIO Pin used to monitor VSYS. Typically you would use this with ADC.
118
+
// There is an example in adc/read_vsys in pico-examples.
119
+
#ifndefPICO_VSYS_PIN
120
+
#definePICO_VSYS_PIN 43
121
+
#endif
122
+
123
+
#ifndefPICO_RP2350_A2_SUPPORTED
124
+
#definePICO_RP2350_A2_SUPPORTED 1
125
+
#endif
126
+
127
+
// PICO_CONFIG: CYW43_PIN_WL_DYNAMIC, flag to indicate if cyw43 SPI pins can be changed at runtime, type=bool, default=false, advanced=true, group=pico_cyw43_driver
128
+
#ifndefCYW43_PIN_WL_DYNAMIC
129
+
#defineCYW43_PIN_WL_DYNAMIC 1
130
+
#endif
131
+
132
+
// PICO_CONFIG: CYW43_DEFAULT_PIN_WL_REG_ON, gpio pin to power up the cyw43 chip, type=int, default=23, advanced=true, group=pico_cyw43_driver
133
+
#ifndefCYW43_DEFAULT_PIN_WL_REG_ON
134
+
#defineCYW43_DEFAULT_PIN_WL_REG_ON 23u
135
+
#endif
136
+
137
+
// PICO_CONFIG: CYW43_DEFAULT_PIN_WL_DATA_OUT, gpio pin for spi data out to the cyw43 chip, type=int, default=24, advanced=true, group=pico_cyw43_driver
138
+
#ifndefCYW43_DEFAULT_PIN_WL_DATA_OUT
139
+
#defineCYW43_DEFAULT_PIN_WL_DATA_OUT 24u
140
+
#endif
141
+
142
+
// PICO_CONFIG: CYW43_DEFAULT_PIN_WL_DATA_IN, gpio pin for spi data in from the cyw43 chip, type=int, default=24, advanced=true, group=pico_cyw43_driver
143
+
#ifndefCYW43_DEFAULT_PIN_WL_DATA_IN
144
+
#defineCYW43_DEFAULT_PIN_WL_DATA_IN 24u
145
+
#endif
146
+
147
+
// PICO_CONFIG: CYW43_DEFAULT_PIN_WL_HOST_WAKE, gpio (irq) pin for the irq line from the cyw43 chip, type=int, default=24, advanced=true, group=pico_cyw43_driver
148
+
#ifndefCYW43_DEFAULT_PIN_WL_HOST_WAKE
149
+
#defineCYW43_DEFAULT_PIN_WL_HOST_WAKE 24u
150
+
#endif
151
+
152
+
// PICO_CONFIG: CYW43_DEFAULT_PIN_WL_CLOCK, gpio pin for the spi clock line to the cyw43 chip, type=int, default=29, advanced=true, group=pico_cyw43_driver
153
+
#ifndefCYW43_DEFAULT_PIN_WL_CLOCK
154
+
#defineCYW43_DEFAULT_PIN_WL_CLOCK 29u
155
+
#endif
156
+
157
+
// PICO_CONFIG: CYW43_DEFAULT_PIN_WL_CS, gpio pin for the spi chip select to the cyw43 chip, type=int, default=25, advanced=true, group=pico_cyw43_driver
0 commit comments