summaryrefslogtreecommitdiffstats
path: root/platforms/chibios/vendors/RP
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2022-10-04 23:10:24 +0200
committerGitHub <noreply@github.com>2022-10-04 23:10:24 +0200
commit996a9006d3f101dc5c48b58339e2e7323040fd59 (patch)
tree56bb76db42e23e3a1bc343ee7d35ee307e08a0a0 /platforms/chibios/vendors/RP
parentb6ea8837e4c81f364d30bdc74bf2cdccb2a1a185 (diff)
[Core] PWM Backlight for RP2040 (#17706)
Diffstat (limited to 'platforms/chibios/vendors/RP')
-rw-r--r--platforms/chibios/vendors/RP/_pin_defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/platforms/chibios/vendors/RP/_pin_defs.h b/platforms/chibios/vendors/RP/_pin_defs.h
index 4241845369..b56ab31406 100644
--- a/platforms/chibios/vendors/RP/_pin_defs.h
+++ b/platforms/chibios/vendors/RP/_pin_defs.h
@@ -35,3 +35,8 @@
#define GP28 28U
#define GP29 29U
#define GP30 30U
+
+/* Aliases for GPIO PWM channels - every pin has at least one PWM channel
+ * assigned */
+#define RP2040_PWM_CHANNEL_A 1U
+#define RP2040_PWM_CHANNEL_B 2U