halconf.h (1282B)
1 /* Copyright 2022 David Hoelscher, customMK 2 * 3 * This program is free software: you can redistribute it and/or modify 4 * it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 3 of the License, or 6 * (at your option) any later version. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <https://www.gnu.org/licenses/>. 15 */ 16 #pragma once 17 18 #ifndef HAL_USE_SPI 19 # define HAL_USE_SPI TRUE 20 #endif 21 22 #ifndef HAL_USE_I2C 23 # define HAL_USE_I2C TRUE 24 #endif 25 26 #ifdef SPLIT_KEYBOARD 27 # ifndef HAL_USE_SERIAL 28 # define HAL_USE_SERIAL TRUE 29 # endif 30 # ifndef SERIAL_BUFFERS_SIZE 31 # define SERIAL_BUFFERS_SIZE 256 32 # endif 33 #endif 34 35 #ifdef WS2812_PWM 36 # ifndef HAL_USE_PWM 37 # define HAL_USE_PWM TRUE 38 # endif 39 #endif 40 41 #ifndef SPI_SELECT_MODE 42 # define SPI_SELECT_MODE SPI_SELECT_MODE_PAD 43 #endif 44 45 #ifndef SPI_USE_WAIT 46 # define SPI_USE_WAIT TRUE 47 #endif 48 49 #include_next <halconf.h>