Skip to content

Commit

Permalink
samples: drivers: led: pwm: Add rpi_pico2 board
Browse files Browse the repository at this point in the history
The RP2350's PWM peripheral is largely unchanged from the RP2040's, but
the higher clock frequency means the long blink delay must be lower.

(cherry picked from commit 6a47f72)

Original-Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
GitOrigin-RevId: 6a47f72
Cr-Build-Id: 8727676392421021649
Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8727676392421021649
Copybot-Job-Name: zephyr-main-copybot-downstream
Change-Id: Ic3a851b4a6683145b39bf4ec15a9da9113c63cf4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6121903
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
  • Loading branch information
Andrew Featherstone authored and Chromeos LUCI committed Dec 25, 2024
1 parent 5b433a2 commit 0719164
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/drivers/led/pwm/boards/rpi_pico2_rp2350a_m33.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_BLINK_DELAY_SHORT=20
CONFIG_BLINK_DELAY_LONG=50
CONFIG_FADE_DELAY=15
8 changes: 8 additions & 0 deletions samples/drivers/led/pwm/boards/rpi_pico2_rp2350a_m33.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2024 Andrew Featherstone <andrew.featherstone@gmail.com>
*/

/* Pico 2 is compatible with the Pico 1, so reuse. */
#include "rpi_pico.overlay"

0 comments on commit 0719164

Please sign in to comment.