Skip to content

Commit c9a6047

Browse files
committed
Add CYW43_WL_GPIO_SMPS_PIN for pico_w and pico2_w
Fixes #2361
1 parent 93ea261 commit c9a6047

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Diff for: src/boards/include/boards/pico2_w.h

+6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@
8989
#define CYW43_WL_GPIO_LED_PIN 0
9090
#endif
9191

92+
// Drive high to force power supply into PWM mode (lower ripple on 3V3 at light loads)
93+
// As this is a CYW43 pin you can do this by calling cyw43_gpio_set
94+
#ifndef CYW43_WL_GPIO_SMPS_PIN
95+
#define CYW43_WL_GPIO_SMPS_PIN 1
96+
#endif
97+
9298
// If CYW43_WL_GPIO_VBUS_PIN is defined then a CYW43 GPIO has to be used to read VBUS.
9399
// This can be passed to cyw43_arch_gpio_get to determine if the device is battery powered.
94100
// PICO_VBUS_PIN and CYW43_WL_GPIO_VBUS_PIN should not both be defined.

Diff for: src/boards/include/boards/pico_w.h

+6
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@
9494
#define CYW43_WL_GPIO_LED_PIN 0
9595
#endif
9696

97+
// Drive high to force power supply into PWM mode (lower ripple on 3V3 at light loads)
98+
// As this is a CYW43 pin you can do this by calling cyw43_gpio_set
99+
#ifndef CYW43_WL_GPIO_SMPS_PIN
100+
#define CYW43_WL_GPIO_SMPS_PIN 1
101+
#endif
102+
97103
// If CYW43_WL_GPIO_VBUS_PIN is defined then a CYW43 GPIO has to be used to read VBUS.
98104
// This can be passed to cyw43_arch_gpio_get to determine if the device is battery powered.
99105
// PICO_VBUS_PIN and CYW43_WL_GPIO_VBUS_PIN should not both be defined.

0 commit comments

Comments
 (0)