summaryrefslogtreecommitdiff
path: root/platforms/chibios/boards/QMK_PM2040/configs/config.h
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-07-06 19:27:15 +0100
committerGitHub <noreply@github.com>2022-07-06 19:27:15 +0100
commit744af003befb3f5cf6dc6b6f3e581f288d598f96 (patch)
tree50db5b3eb71a100906b07239e6348aad379ea3e9 /platforms/chibios/boards/QMK_PM2040/configs/config.h
parent29a2bac4691dae81a613af31e5e99660e61edc3d (diff)
Add kb2040 and sparkfun rp2040 converters (#17514)
Diffstat (limited to 'platforms/chibios/boards/QMK_PM2040/configs/config.h')
-rw-r--r--platforms/chibios/boards/QMK_PM2040/configs/config.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/platforms/chibios/boards/QMK_PM2040/configs/config.h b/platforms/chibios/boards/QMK_PM2040/configs/config.h
new file mode 100644
index 0000000000..6b1dcca938
--- /dev/null
+++ b/platforms/chibios/boards/QMK_PM2040/configs/config.h
@@ -0,0 +1,21 @@
+// Copyright 2022 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#ifndef I2C_DRIVER
+# define I2C_DRIVER I2CD2
+#endif
+#ifndef I2C1_SDA_PIN
+# define I2C1_SDA_PIN D2
+#endif
+#ifndef I2C1_SCL_PIN
+# define I2C1_SCL_PIN D3
+#endif
+
+#ifndef RP2040_BOOTLOADER_DOUBLE_TAP_RESET
+# define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
+#endif
+#ifndef RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT
+# define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
+#endif