diff options
Diffstat (limited to 'lib/python/qmk/constants.py')
| -rw-r--r-- | lib/python/qmk/constants.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/python/qmk/constants.py b/lib/python/qmk/constants.py index 2ddaa568a..3ed69f3bf 100644 --- a/lib/python/qmk/constants.py +++ b/lib/python/qmk/constants.py | |||
| @@ -10,8 +10,8 @@ QMK_FIRMWARE = Path.cwd() | |||
| 10 | MAX_KEYBOARD_SUBFOLDERS = 5 | 10 | MAX_KEYBOARD_SUBFOLDERS = 5 |
| 11 | 11 | ||
| 12 | # Supported processor types | 12 | # Supported processor types |
| 13 | CHIBIOS_PROCESSORS = 'cortex-m0', 'cortex-m0plus', 'cortex-m3', 'cortex-m4', 'MKL26Z64', 'MK20DX128', 'MK20DX256', 'STM32F042', 'STM32F072', 'STM32F103', 'STM32F303', 'STM32F401', 'STM32F411' | 13 | CHIBIOS_PROCESSORS = 'cortex-m0', 'cortex-m0plus', 'cortex-m3', 'cortex-m4', 'MKL26Z64', 'MK20DX128', 'MK20DX256', 'STM32F042', 'STM32F072', 'STM32F103', 'STM32F303', 'STM32F401', 'STM32F411', 'STM32G431', 'STM32G474' |
| 14 | LUFA_PROCESSORS = 'atmega16u2', 'atmega32u2', 'atmega16u4', 'atmega32u4', 'at90usb646', 'at90usb647', 'at90usb1286', 'at90usb1287', None | 14 | LUFA_PROCESSORS = 'at90usb162', 'atmega16u2', 'atmega32u2', 'atmega16u4', 'atmega32u4', 'at90usb646', 'at90usb647', 'at90usb1286', 'at90usb1287', None |
| 15 | VUSB_PROCESSORS = 'atmega32a', 'atmega328p', 'atmega328', 'attiny85' | 15 | VUSB_PROCESSORS = 'atmega32a', 'atmega328p', 'atmega328', 'attiny85' |
| 16 | 16 | ||
| 17 | # Common format strings | 17 | # Common format strings |
| @@ -19,6 +19,17 @@ DATE_FORMAT = '%Y-%m-%d' | |||
| 19 | DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S %Z' | 19 | DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S %Z' |
| 20 | TIME_FORMAT = '%H:%M:%S' | 20 | TIME_FORMAT = '%H:%M:%S' |
| 21 | 21 | ||
| 22 | # Used when generating matrix locations | ||
| 23 | COL_LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijilmnopqrstuvwxyz' | ||
| 24 | ROW_LETTERS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnop' | ||
| 25 | |||
| 26 | # Mapping between info.json and config.h keys | ||
| 27 | LED_INDICATORS = { | ||
| 28 | 'caps_lock': 'LED_CAPS_LOCK_PIN', | ||
| 29 | 'num_lock': 'LED_NUM_LOCK_PIN', | ||
| 30 | 'scroll_lock': 'LED_SCROLL_LOCK_PIN', | ||
| 31 | } | ||
| 32 | |||
| 22 | # Constants that should match their counterparts in make | 33 | # Constants that should match their counterparts in make |
| 23 | BUILD_DIR = environ.get('BUILD_DIR', '.build') | 34 | BUILD_DIR = environ.get('BUILD_DIR', '.build') |
| 24 | KEYBOARD_OUTPUT_PREFIX = f'{BUILD_DIR}/obj_' | 35 | KEYBOARD_OUTPUT_PREFIX = f'{BUILD_DIR}/obj_' |
