logo

qmk_firmware

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

config.h (1416B)


  1. /*
  2. * Copyright (c) 2018 Charlie Waters
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #include "pin_defs.h"
  19. #define LINE_UART_TX B0
  20. #define LINE_UART_RX B1
  21. #define LINE_BT_UART_TX A4 // Master TX, BLE RX
  22. #define LINE_BT_UART_RX A5 // Master RX, BLE TX
  23. // Obins stock firmware has something similar to this already enabled, but disabled by default in QMK
  24. #define PERMISSIVE_HOLD
  25. // SPI configuration
  26. #define SPI_DRIVER SPID1
  27. #define SPI_SCK_PIN A0
  28. #define SPI_MOSI_PIN A1
  29. #define SPI_MISO_PIN A2
  30. // Flash configuration
  31. #define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN A3
  32. #define EXTERNAL_FLASH_SPI_CLOCK_DIVISOR 16
  33. #define EXTERNAL_FLASH_PAGE_SIZE 256
  34. #define EXTERNAL_FLASH_SECTOR_SIZE 4096
  35. #define EXTERNAL_FLASH_BLOCK_SIZE 4096
  36. #define EXTERNAL_FLASH_SIZE (256 * 1024) // 2M-bit flash size