blob: 291e1b1379859c7b4fc407760d4975ba03d5606f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
VIA_ENABLE=yes
# Size optimizations to fit VIA support
#
# These optimizations are pretty intrusive because they remove the idle thread.
# Without idle thread some sleep related functions no longer function.
# These broken functions are overwritten with patched variants.
#
# These optimization are copied from:
# https://github.com/gloryhzw/qmk_firmware/blob/sn32/keyboards/gmmk/full
# Reduce RAW endpoints
OPT_DEFS += -DRAW_IN_CAPACITY=1
OPT_DEFS += -DRAW_OUT_CAPACITY=1
# Remove idle thread
OPT_DEFS += -DCH_CFG_NO_IDLE_THREAD=TRUE
# Include the patched functions
SRC += keymaps/via/no_idle_thread.c
# Reduce stack size even further since we literaly need those 10 bytes
USE_EXCEPTIONS_STACKSIZE = 0xE0
|