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 18 #pragma once 19 20 #include "pin_defs.h" 21 22 #define LINE_UART_TX B0 23 #define LINE_UART_RX B1 24 25 #define LINE_BT_UART_TX A4 // Master TX, BLE RX 26 #define LINE_BT_UART_RX A5 // Master RX, BLE TX 27 28 // Obins stock firmware has something similar to this already enabled, but disabled by default in QMK 29 #define PERMISSIVE_HOLD 30 31 // SPI configuration 32 #define SPI_DRIVER SPID1 33 #define SPI_SCK_PIN A0 34 #define SPI_MOSI_PIN A1 35 #define SPI_MISO_PIN A2 36 37 // Flash configuration 38 #define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN A3 39 #define EXTERNAL_FLASH_SPI_CLOCK_DIVISOR 16 40 #define EXTERNAL_FLASH_PAGE_SIZE 256 41 #define EXTERNAL_FLASH_SECTOR_SIZE 4096 42 #define EXTERNAL_FLASH_BLOCK_SIZE 4096 43 #define EXTERNAL_FLASH_SIZE (256 * 1024) // 2M-bit flash size