constants.h (1124B)
1 /* 2 MNT Reform 2.0 Keyboard Firmware 3 See keyboard.c for Copyright 4 SPDX-License-Identifier: MIT 5 */ 6 7 #ifndef _CONSTANTS_H_ 8 #define _CONSTANTS_H_ 9 10 // KBD_VARIANT_*_US sets KBD_VARIANT_QWERTY_US 11 #if defined KBD_VARIANT_2_US || defined KBD_VARIANT_3_US 12 # define KBD_VARIANT_QWERTY_US 13 #endif 14 // KBD_VARIANT_3_US sets KBD_VARIANT_3 15 #ifdef KBD_VARIANT_3_US 16 # define KBD_VARIANT_3 17 #endif 18 // KBD_VARIANT_3_NEO2 sets KBD_VARIANT_3 and KBD_VARIANT_NEO2 19 #ifdef KBD_VARIANT_3_NEO2 20 # define KBD_VARIANT_3 21 # define KBD_VARIANT_NEO2 22 #endif 23 // KBD_VARIANT_2_US sets KBD_VARIANT_2 (which does nothing right now as it's 24 // the default) 25 #ifdef KBD_VARIANT_2_US 26 # define KBD_VARIANT_2 27 #endif 28 // allow overriding KBD_FW_VERSION by not touching it if it's already set 29 #ifndef KBD_FW_VERSION 30 # define KBD_FW_VERSION "20231124" 31 #endif 32 // set KBD_FW_REV according to variant 2 or 3 33 #ifdef KBD_VARIANT_3 34 # define KBD_FW_REV "R3 " KBD_FW_VERSION 35 #else 36 # define KBD_FW_REV "R2 " KBD_FW_VERSION 37 #endif 38 39 #define KBD_COLS 14 40 #define KBD_ROWS 6 41 #define KBD_MATRIX_SZ KBD_COLS * KBD_ROWS + 4 42 #define KBD_EDITOR_MARKER 0xfe,0xed,0xca,0xfe 43 44 #endif