summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-09-25 13:03:02 +1000
committerNick Brassel <nick@tzarc.org>2023-09-25 13:03:02 +1000
commitc597731d1d74855f039880866465773722866c11 (patch)
tree7e6b40657c6e068247ed2ab26c60501ea9e1047e
parent6b671f93c6dfcf4967592a6292ff0fe397d5c210 (diff)
parent0c4bd1ccdce12e9207054e398c00257d1198a651 (diff)
Merge remote-tracking branch 'upstream/master' into develop
-rw-r--r--.github/workflows/format.yml2
-rw-r--r--.github/workflows/lint.yml2
-rw-r--r--docs/feature_ps2_mouse.md23
-rw-r--r--platforms/chibios/drivers/vendor/RP/RP2040/ps2_vendor.c2
4 files changed, 26 insertions, 3 deletions
diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml
index 11b4a8a9f4..9e8b80c883 100644
--- a/.github/workflows/format.yml
+++ b/.github/workflows/format.yml
@@ -35,7 +35,7 @@ jobs:
- name: Get changed files
id: file_changes
- uses: tj-actions/changed-files@v38
+ uses: tj-actions/changed-files@v39
- name: Run qmk formatters
shell: 'bash {0}'
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index e0286b83fc..9862ff502c 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -27,7 +27,7 @@ jobs:
- name: Get changed files
id: file_changes
- uses: tj-actions/changed-files@v38
+ uses: tj-actions/changed-files@v39
- name: Print info
run: |
diff --git a/docs/feature_ps2_mouse.md b/docs/feature_ps2_mouse.md
index e714d9b867..766fd6fe78 100644
--- a/docs/feature_ps2_mouse.md
+++ b/docs/feature_ps2_mouse.md
@@ -155,6 +155,29 @@ In your keyboard config.h:
#endif
```
+### RP2040 PIO Version :id=rp2040-pio-version
+
+The `PIO` subsystem is a Raspberry Pi RP2040 specific implementation, using the integrated PIO peripheral and is therefore only available on this MCU.
+
+There are strict requirements for pin ordering but any pair of GPIO pins can be used. The GPIO used for clock must be directly after data, see the included info.json snippet for an example of correct order.
+
+You may optionally switch the PIO peripheral used with the following define in config.h:
+```c
+#define PS2_PIO_USE_PIO1 // Force the usage of PIO1 peripheral, by default the PS2 implementation uses the PIO0 peripheral
+```
+
+Example info.json content:
+
+```json
+ "ps2": {
+ "clock_pin": "GP1",
+ "data_pin": "GP0",
+ "driver": "vendor",
+ "enabled": true,
+ "mouse_enabled": true
+ }
+```
+
## Additional Settings :id=additional-settings
### PS/2 Mouse Features :id=ps2-mouse-features
diff --git a/platforms/chibios/drivers/vendor/RP/RP2040/ps2_vendor.c b/platforms/chibios/drivers/vendor/RP/RP2040/ps2_vendor.c
index 119c6354b0..1c61f196bd 100644
--- a/platforms/chibios/drivers/vendor/RP/RP2040/ps2_vendor.c
+++ b/platforms/chibios/drivers/vendor/RP/RP2040/ps2_vendor.c
@@ -22,7 +22,7 @@
#endif
#if PS2_DATA_PIN + 1 != PS2_CLOCK_PIN
-# error PS/2 Clock pin must be followed by data pin!
+# error PS/2 clock pin must be data pin + 1!
#endif
static inline void pio_serve_interrupt(void);