qmk_firmware

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

config.h (1381B)


      1 // Copyright 2023 Moritz Plattner (@ebastler), Alex Havermale (@haversnail)
      2 // SPDX-License-Identifier: GPL-2.0-or-later
      3 
      4 #pragma once
      5 
      6 /* Defines for configuring the serial driver for split comms (see https://docs.qmk.fm/drivers/serial) */
      7 #define SERIAL_USART_DRIVER SD3    // USART 3
      8 
      9 /* Defines for required pins */
     10 #define ID_PIN A13
     11 #define USBSW_PIN A14     // Switches the hub input/output with the MUXes
     12 #define PSW_PIN A15       // Turns the power routing to the USB-C port on/off
     13 #define BUS_B_PIN C13     // Tells the hub to be bus-powered or self-powered (which in turn tells the clients to use 100 mA or 500 mA)
     14 #define USB_VBUS_PIN C15  // Only the master side will have VBUS present at power-up (used to determine master/slave)
     15 #define USBPD_1_PIN F0
     16 #define USBPD_2_PIN F1
     17 
     18 /* Additional defines for managing power and state scross split */
     19 #define DISABLE_BUS_POWER_MODE TRUE
     20 #define KB_STATE_SYNC_INTERVAL 500
     21 #define USBPD_ALLOWANCE_CHECK_INTERVAL 100
     22 #define SPLIT_TRANSACTION_IDS_KB RPC_ID_KB_STATE
     23 
     24 /* Defines for the RGB matrix */
     25 #define INDICATOR_MAX_BRIGHTNESS 255
     26 #define CAPS_LOCK_LED_INDEX 0 // LED1 on PCB
     27 #define WS2812_EXTERNAL_PULLUP
     28 #define WS2812_PWM_DRIVER PWMD3
     29 #define WS2812_PWM_CHANNEL 4
     30 #define WS2812_PWM_PAL_MODE 10
     31 #define WS2812_DMA_STREAM STM32_DMA1_STREAM2
     32 #define WS2812_DMA_CHANNEL 2
     33 #define WS2812_DMAMUX_ID STM32_DMAMUX1_TIM3_UP