Skip to content

Add CYW43_WL_GPIO_SMPS_PIN for pico_w and pico2_w #2410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/boards/include/boards/pico2_w.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@
#define CYW43_WL_GPIO_LED_PIN 0
#endif

// Drive high to force power supply into PWM mode (lower ripple on 3V3 at light loads)
// As this is a CYW43 pin you can do this by calling cyw43_gpio_set
#ifndef CYW43_WL_GPIO_SMPS_PIN
#define CYW43_WL_GPIO_SMPS_PIN 1
#endif

// If CYW43_WL_GPIO_VBUS_PIN is defined then a CYW43 GPIO has to be used to read VBUS.
// This can be passed to cyw43_arch_gpio_get to determine if the device is battery powered.
// PICO_VBUS_PIN and CYW43_WL_GPIO_VBUS_PIN should not both be defined.
Expand Down
6 changes: 6 additions & 0 deletions src/boards/include/boards/pico_w.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@
#define CYW43_WL_GPIO_LED_PIN 0
#endif

// Drive high to force power supply into PWM mode (lower ripple on 3V3 at light loads)
// As this is a CYW43 pin you can do this by calling cyw43_gpio_set
#ifndef CYW43_WL_GPIO_SMPS_PIN
#define CYW43_WL_GPIO_SMPS_PIN 1
#endif

// If CYW43_WL_GPIO_VBUS_PIN is defined then a CYW43 GPIO has to be used to read VBUS.
// This can be passed to cyw43_arch_gpio_get to determine if the device is battery powered.
// PICO_VBUS_PIN and CYW43_WL_GPIO_VBUS_PIN should not both be defined.
Expand Down