config.h 1.3 KB

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