Compare commits

...
2 Commits
Author SHA1 Message Date
Aapo Saaristo 2a231457bd Add user-overridable callback for cancelling UCIS input (#5564)
* Add user-overridable callback for cancelling UCIS input

To clean up things from qk_ucis_start_user() for instance.

* restore lost newline to quantum/process_keycode/process_ucis.c

Co-Authored-By: shinmai <[email protected]>
2019-07-15 22:53:04 -07:00
Takeshi ISHII 0f95c0865c add 'objs-size' target into tmk_core/avr.mk (#5490) 2019-07-15 22:45:31 -07:00
3 changed files with 9 additions and 0 deletions

No files matched your search

+1
View File
@@ -398,6 +398,7 @@ $(KEYBOARD_OUTPUT)_CONFIG := $(PROJECT_CONFIG)
all: build check-size all: build check-size
build: elf cpfirmware build: elf cpfirmware
check-size: build check-size: build
objs-size: build
include show_options.mk include show_options.mk
include $(TMK_PATH)/rules.mk include $(TMK_PATH)/rules.mk
+5
View File
@@ -64,6 +64,10 @@ void qk_ucis_symbol_fallback (void) {
} }
} }
__attribute__((weak))
void qk_ucis_cancel(void) {
}
void register_ucis(const char *hex) { void register_ucis(const char *hex) {
for(int i = 0; hex[i]; i++) { for(int i = 0; hex[i]; i++) {
uint8_t kc = 0; uint8_t kc = 0;
@@ -130,6 +134,7 @@ bool process_ucis (uint16_t keycode, keyrecord_t *record) {
if (keycode == KC_ESC) { if (keycode == KC_ESC) {
qk_ucis_state.in_progress = false; qk_ucis_state.in_progress = false;
qk_ucis_cancel();
return false; return false;
} }
+3
View File
@@ -390,6 +390,9 @@ show_path:
@echo SRC=$(SRC) @echo SRC=$(SRC)
@echo OBJ=$(OBJ) @echo OBJ=$(OBJ)
objs-size:
for i in $(OBJ); do echo $$i; done | sort | xargs $(SIZE)
ifeq ($(findstring avr-gcc,$(CC)),avr-gcc) ifeq ($(findstring avr-gcc,$(CC)),avr-gcc)
SIZE_MARGIN = 1024 SIZE_MARGIN = 1024