logo

qmk_firmware

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

config.h (1430B)


  1. // Copyright 2022 xerootg
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. // //we are using hardware serial, so lets undef the softserial used otherwise
  5. /* serial.c configuration for split keyboard */
  6. #define SERIAL_USART_FULL_DUPLEX // Enable full duplex operation mode.
  7. #define SERIAL_USART_RX_PIN B7 // USART RX pin
  8. #define SERIAL_USART_TX_PIN B6 // USART TX pin
  9. #define SERIAL_USART_PIN_SWAP // Swap TX and RX pins if keyboard is master halve.
  10. // Check if this feature is necessary with your keyboard design and available on the mcu.
  11. #define SELECT_SOFT_SERIAL_SPEED 1 // or 0, 2, 3, 4, 5
  12. // 0: 460800 baud
  13. // 1: 230400 baud (default)
  14. // 2: 115200 baud
  15. // 3: 57600 baud
  16. // 4: 38400 baud
  17. // 5: 19200 baud
  18. #define SERIAL_USART_DRIVER SD1 // USART driver of TX and RX pin. default: SD1
  19. #define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
  20. #define SERIAL_USART_RX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
  21. #define SERIAL_USART_TIMEOUT 20 // USART driver timeout. default 20