config.h (1158B)
1 // Copyright 2022 QMK 2 // SPDX-License-Identifier: GPL-2.0-or-later 3 4 #pragma once 5 6 /**====================== 7 ** I2C Driver 8 *========================**/ 9 10 #ifndef I2C_DRIVER 11 # define I2C_DRIVER I2CD0 12 #endif 13 #ifndef I2C1_SDA_PIN 14 # define I2C1_SDA_PIN D1 15 #endif 16 #ifndef I2C1_SCL_PIN 17 # define I2C1_SCL_PIN D0 18 #endif 19 20 /**====================== 21 ** SPI Driver 22 *========================**/ 23 24 #ifndef SPI_DRIVER 25 # define SPI_DRIVER SPID0 26 #endif 27 #ifndef SPI_SCK_PIN 28 # define SPI_SCK_PIN B1 29 #endif 30 #ifndef SPI_MISO_PIN 31 # define SPI_MISO_PIN B3 32 #endif 33 #ifndef SPI_MOSI_PIN 34 # define SPI_MOSI_PIN B2 35 #endif 36 37 /**====================== 38 ** UART Driver 39 *========================**/ 40 41 #ifndef UART_DRIVER 42 # define UART_DRIVER SIOD0 43 #endif 44 45 #ifndef UART_TX_PIN 46 # define UART_TX_PIN D3 47 #endif 48 49 #ifndef UART_RX_PIN 50 # define UART_RX_PIN D2 51 #endif 52 53 /**====================== 54 ** Double-tap 55 *========================**/ 56 57 #ifndef RP2040_BOOTLOADER_DOUBLE_TAP_RESET 58 # define RP2040_BOOTLOADER_DOUBLE_TAP_RESET 59 #endif 60 #ifndef RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 61 # define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U 62 #endif