qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

config.h (1157B)


      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 I2CD1
     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 #ifndef SPI_DRIVER
     24 #    define SPI_DRIVER SPID0
     25 #endif
     26 #ifndef SPI_SCK_PIN
     27 #    define SPI_SCK_PIN B1
     28 #endif
     29 #ifndef SPI_MISO_PIN
     30 #    define SPI_MISO_PIN B3
     31 #endif
     32 #ifndef SPI_MOSI_PIN
     33 #    define SPI_MOSI_PIN B2
     34 #endif
     35 
     36 /**======================
     37  **      UART Driver
     38  *========================**/
     39 
     40 #ifndef UART_DRIVER
     41 #    define UART_DRIVER SIOD0
     42 #endif
     43 
     44 #ifndef UART_TX_PIN
     45 #    define UART_TX_PIN D3
     46 #endif
     47 
     48 #ifndef UART_RX_PIN
     49 #    define UART_RX_PIN D2
     50 #endif
     51 
     52 /**======================
     53  **    Double-tap
     54  *========================**/
     55 
     56 #ifndef RP2040_BOOTLOADER_DOUBLE_TAP_RESET
     57 #    define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
     58 #endif
     59 #ifndef RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT
     60 #    define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
     61 #endif