logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

post_config.h (1644B)


  1. // Copyright 2022 dvermd (@dvermd)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #if defined(SPLIT_SERIAL_HALFDUPLEX)
  5. #if defined(USE_SDI1_ON_STANDARD_ROLE_PINS)
  6. #define SOFT_SERIAL_PIN A9
  7. #elif defined(USE_SDI1_ON_ALTERNATE_ROLE_PINS)
  8. #define SOFT_SERIAL_PIN B6
  9. #define USART1_REMAP // Remap USART TX and RX pins on STM32F103 MCUs
  10. #elif defined(USE_SDI2)
  11. #define SOFT_SERIAL_PIN A2
  12. #define SERIAL_USART_DRIVER SD2 // USART driver of TX and RX pin. default: SD1
  13. #else
  14. #error "splittest serial_halfduplex keymap is missing a configuration (USE_SDI1_ON_STANDARD_ROLE_PINS, USE_SDI1_ON_ALTERNATE_ROLE_PINS, USE_SDI2)"
  15. #endif
  16. #elif defined(SPLIT_SERIAL_FULLDUPLEX)
  17. #define SERIAL_USART_FULL_DUPLEX // Enable full duplex operation mode.
  18. #if defined(USE_SDI1_ON_STANDARD_ROLE_PINS)
  19. #define SOFT_SERIAL_PIN A9
  20. #define SERIAL_USART_RX_PIN A10 // USART RX pin
  21. #elif defined(USE_SDI1_ON_ALTERNATE_ROLE_PINS)
  22. #define SOFT_SERIAL_PIN B6
  23. #define SERIAL_USART_RX_PIN B7 // USART RX pin
  24. #define USART1_REMAP // Remap USART TX and RX pins on STM32F103 MCUs
  25. #elif defined(USE_SDI2)
  26. #define SOFT_SERIAL_PIN A2
  27. #define SERIAL_USART_RX_PIN A3 // USART RX pin
  28. #define SERIAL_USART_DRIVER SD2 // USART driver of TX and RX pin. default: SD1
  29. #else
  30. #error "splittest serial_fullduplex keymap is missing a configuration (USE_SDI1_ON_STANDARD_ROLE_PINS, USE_SDI1_ON_ALTERNATE_ROLE_PINS, USE_SDI2)"
  31. #endif
  32. #else // defined(SPLIT_BITBANG)
  33. #define SOFT_SERIAL_PIN B8
  34. #endif