logo

qmk_firmware

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

config.h (1572B)


  1. /*
  2. * Copyright 2020 Christopher Courtney <drashna@live.com> (@drashna)
  3. * Copyright 2021 Stefan Kerkmann (@KarlK90)
  4. * Copyright 2022 Charly Delay <charly@codesink.dev> (@0xcharly)
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Publicw License as published by
  8. * the Free Software Foundation, either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #pragma once
  20. /* Handedness. */
  21. #define SPLIT_HAND_PIN A3 // High -> left, Low -> right.
  22. /* RGB settings. */
  23. #define WS2812_PWM_DRIVER PWMD2
  24. #define WS2812_PWM_CHANNEL 2
  25. #define WS2812_PWM_PAL_MODE 1
  26. #define WS2812_EXTERNAL_PULLUP
  27. #define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM1
  28. #define WS2812_PWM_DMA_CHANNEL 3
  29. /* Serial configuration for split keyboard. */
  30. #define SERIAL_USART_TX_PIN A9
  31. /* CRC. */
  32. #define CRC8_USE_TABLE
  33. #define CRC8_OPTIMIZE_SPEED
  34. /* SPI config for EEPROM. */
  35. #define SPI_DRIVER SPID1
  36. #define SPI_SCK_PIN A5
  37. #define SPI_SCK_PAL_MODE 5
  38. #define SPI_MOSI_PIN A7
  39. #define SPI_MOSI_PAL_MODE 5
  40. #define SPI_MISO_PIN A6
  41. #define SPI_MISO_PAL_MODE 5
  42. /* EEPROM config. */
  43. #define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN A4