d84eb14b3a
* Option to use function for KEYCODE2 routines. Convert the KEYCODE2SYSTEM and KEYCODE2CONSUMER macros to functions, defaulting to using the macros. The function form allows the compiler to optimize the switch statement itself, over the macro nested ternaries. To enable this feature, #define USE_KEYCODE2_FUNCTION. Testing against a random selection of avr-based keyboards, this increased available flash by ~500 bytes. For arm-based keyboards, the available flash increased by ~400 bytes. * Replace macro with function entirely. As zvecr states, go bold and just commit to using the function instead of the macro. * Reformat whitespace now that functional review is done Verified against clang-format output. |
||
---|---|---|
.. | ||
arm_atsam | ||
avr | ||
chibios | ||
test | ||
action.c | ||
action.h | ||
action_code.h | ||
action_layer.c | ||
action_layer.h | ||
action_macro.c | ||
action_macro.h | ||
action_tapping.c | ||
action_tapping.h | ||
action_util.c | ||
action_util.h | ||
bootloader.h | ||
bootmagic.c | ||
bootmagic.h | ||
command.c | ||
command.h | ||
debug.c | ||
debug.h | ||
eeconfig.c | ||
eeconfig.h | ||
eeprom.h | ||
host.c | ||
host.h | ||
host_driver.h | ||
keyboard.c | ||
keyboard.h | ||
keycode.h | ||
led.h | ||
magic.c | ||
magic.h | ||
matrix.h | ||
mousekey.c | ||
mousekey.h | ||
nodebug.h | ||
print.c | ||
print.h | ||
progmem.h | ||
raw_hid.h | ||
report.c | ||
report.h | ||
sendchar.h | ||
sendchar_null.c | ||
sendchar_uart.c | ||
sleep_led.h | ||
suspend.h | ||
timer.h | ||
uart.c | ||
uart.h | ||
util.c | ||
util.h | ||
virtser.h | ||
wait.h |