config.h (1287B)
1 /* 2 Copyright 2020 Kan-Ru Chen <kanru@kanru.info> 3 Copyright 2012 Jun Wako <wakojun@gmail.com> 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 2 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #pragma once 20 21 22 /* key matrix size */ 23 #define MATRIX_ROWS 8 24 #define MATRIX_COLS 8 25 26 /* matrix power saving */ 27 #define MATRIX_POWER_SAVE_TIMEOUT_MS 10000 28 #define MATRIX_POWER_SAVE_TIMEOUT_L2_MS 1800000 29 #define MATRIX_POWER_SAVE_TIMEOUT_L3_MS 7200000 30 31 /* 32 * Feature disable options 33 * These options are also useful to firmware size reduction. 34 */ 35 36 /* disable debug print */ 37 //#define NO_DEBUG 38 39 /* disable print */ 40 //#define NO_PRINT 41 42 /* disable action features */ 43 //#define NO_ACTION_LAYER 44 //#define NO_ACTION_TAPPING 45 //#define NO_ACTION_ONESHOT 46 47 //#define DEBUG_MATRIX_SCAN_RATE