From 744af003befb3f5cf6dc6b6f3e581f288d598f96 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Wed, 6 Jul 2022 19:27:15 +0100 Subject: Add kb2040 and sparkfun rp2040 converters (#17514) --- .../chibios/boards/QMK_PM2040/configs/config.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 platforms/chibios/boards/QMK_PM2040/configs/config.h (limited to 'platforms/chibios/boards/QMK_PM2040/configs/config.h') 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 -- cgit v1.2.3 From cca5d3532128a9d1aa2ab39405d935fc132c752d Mon Sep 17 00:00:00 2001 From: Albert Y <76888457+filterpaper@users.noreply.github.com> Date: Thu, 7 Jul 2022 15:33:11 +0800 Subject: Update PM2040 I2C pins (#17578) --- platforms/chibios/boards/QMK_PM2040/configs/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platforms/chibios/boards/QMK_PM2040/configs/config.h') diff --git a/platforms/chibios/boards/QMK_PM2040/configs/config.h b/platforms/chibios/boards/QMK_PM2040/configs/config.h index 6b1dcca938..9dfe86f12e 100644 --- a/platforms/chibios/boards/QMK_PM2040/configs/config.h +++ b/platforms/chibios/boards/QMK_PM2040/configs/config.h @@ -7,10 +7,10 @@ # define I2C_DRIVER I2CD2 #endif #ifndef I2C1_SDA_PIN -# define I2C1_SDA_PIN D2 +# define I2C1_SDA_PIN 2U #endif #ifndef I2C1_SCL_PIN -# define I2C1_SCL_PIN D3 +# define I2C1_SCL_PIN 3U #endif #ifndef RP2040_BOOTLOADER_DOUBLE_TAP_RESET -- cgit v1.2.3 From 05f30f0787aaea63f83e4c889891255d379abb6d Mon Sep 17 00:00:00 2001 From: Albert Y <76888457+filterpaper@users.noreply.github.com> Date: Thu, 21 Jul 2022 01:24:34 +0800 Subject: Use Pro Micro pinout for SDA/SCL (#17595) --- platforms/chibios/boards/QMK_PM2040/configs/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platforms/chibios/boards/QMK_PM2040/configs/config.h') diff --git a/platforms/chibios/boards/QMK_PM2040/configs/config.h b/platforms/chibios/boards/QMK_PM2040/configs/config.h index 9dfe86f12e..8c773f8b19 100644 --- a/platforms/chibios/boards/QMK_PM2040/configs/config.h +++ b/platforms/chibios/boards/QMK_PM2040/configs/config.h @@ -7,10 +7,10 @@ # define I2C_DRIVER I2CD2 #endif #ifndef I2C1_SDA_PIN -# define I2C1_SDA_PIN 2U +# define I2C1_SDA_PIN D1 #endif #ifndef I2C1_SCL_PIN -# define I2C1_SCL_PIN 3U +# define I2C1_SCL_PIN D0 #endif #ifndef RP2040_BOOTLOADER_DOUBLE_TAP_RESET -- cgit v1.2.3