summaryrefslogtreecommitdiff
path: root/keyboards/boardsource/lulu/rp2040
diff options
context:
space:
mode:
authorjack <0x6A73@pm.me>2022-08-30 01:20:05 -0600
committerGitHub <noreply@github.com>2022-08-30 08:20:05 +0100
commit035e7fdb8ba2e4533c809b2dfe0f15ea7116c508 (patch)
tree58f925fbd255c8f385202a7c9b512a49d4407a83 /keyboards/boardsource/lulu/rp2040
parentf3d52d8fe81da5044db4bb675ae788393d7c06a5 (diff)
Add boardsource/lulu RP2040 support (#18200)
by waffle87
Diffstat (limited to 'keyboards/boardsource/lulu/rp2040')
-rw-r--r--keyboards/boardsource/lulu/rp2040/config.h11
-rw-r--r--keyboards/boardsource/lulu/rp2040/halconf.h5
-rw-r--r--keyboards/boardsource/lulu/rp2040/info.json17
-rw-r--r--keyboards/boardsource/lulu/rp2040/mcuconf.h6
-rw-r--r--keyboards/boardsource/lulu/rp2040/rules.mk2
5 files changed, 41 insertions, 0 deletions
diff --git a/keyboards/boardsource/lulu/rp2040/config.h b/keyboards/boardsource/lulu/rp2040/config.h
new file mode 100644
index 0000000000..2e02e03500
--- /dev/null
+++ b/keyboards/boardsource/lulu/rp2040/config.h
@@ -0,0 +1,11 @@
+// Copyright 2022 jack (@waffle87)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
+#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 200U
+#define SERIAL_USART_FULL_DUPLEX
+#define SERIAL_USART_TX_PIN GP0
+#define SERIAL_USART_RX_PIN GP1
+#define I2C_DRIVER I2CD2
+#define I2C1_SDA_PIN GP22
+#define I2C1_SCL_PIN GP23
diff --git a/keyboards/boardsource/lulu/rp2040/halconf.h b/keyboards/boardsource/lulu/rp2040/halconf.h
new file mode 100644
index 0000000000..9b8ab5d023
--- /dev/null
+++ b/keyboards/boardsource/lulu/rp2040/halconf.h
@@ -0,0 +1,5 @@
+// Copyright 2022 jack (@waffle87)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+#define HAL_USE_I2C TRUE
+#include_next <halconf.h>
diff --git a/keyboards/boardsource/lulu/rp2040/info.json b/keyboards/boardsource/lulu/rp2040/info.json
new file mode 100644
index 0000000000..a384241944
--- /dev/null
+++ b/keyboards/boardsource/lulu/rp2040/info.json
@@ -0,0 +1,17 @@
+{
+ "bootloader": "rp2040",
+ "matrix_pins": {
+ "cols": ["GP2", "GP3", "GP4", "GP5", "GP6", "GP7"],
+ "rows": ["GP14", "GP15", "GP16", "GP17", "GP18"]
+ },
+ "processor": "RP2040",
+ "rgblight": {
+ "pin": "GP29",
+ "led_count": 70
+ },
+ "encoder": {
+ "rotary": [
+ { "pin_a": "GP8", "pin_b": "GP9" }
+ ]
+ }
+}
diff --git a/keyboards/boardsource/lulu/rp2040/mcuconf.h b/keyboards/boardsource/lulu/rp2040/mcuconf.h
new file mode 100644
index 0000000000..6f05b8bbe8
--- /dev/null
+++ b/keyboards/boardsource/lulu/rp2040/mcuconf.h
@@ -0,0 +1,6 @@
+// Copyright 2022 jack (@waffle87)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+#include_next <mcuconf.h>
+#undef RP_I2C_USE_I2C1
+#define RP_I2C_USE_I2C1 TRUE
diff --git a/keyboards/boardsource/lulu/rp2040/rules.mk b/keyboards/boardsource/lulu/rp2040/rules.mk
new file mode 100644
index 0000000000..8fb51ec82d
--- /dev/null
+++ b/keyboards/boardsource/lulu/rp2040/rules.mk
@@ -0,0 +1,2 @@
+SERIAL_DRIVER = vendor
+WS2812_DRIVER = vendor