X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tmk_core%2Fcommon%2Fkeyboard.h;h=bf8b71fb78f74f9f7294d470211312890f62ad12;hb=bb208f3e3b69fb154f4f78d7538ffa28482f232f;hp=f17003c2ff97c13e4c6585ed133b1e3bbb814463;hpb=0e174fcb48471b6af79f1456d65edf7c22d8b903;p=qmk_firmware.git diff --git a/tmk_core/common/keyboard.h b/tmk_core/common/keyboard.h index f17003c2f..bf8b71fb7 100644 --- a/tmk_core/common/keyboard.h +++ b/tmk_core/common/keyboard.h @@ -57,6 +57,8 @@ static inline bool IS_RELEASED(keyevent_t event) { return (!IS_NOEVENT(event) && .time = (timer_read() | 1) \ } +void disable_jtag(void); + /* it runs once at early stage of startup before keyboard_init. */ void keyboard_setup(void); /* it runs once after initializing host side protocol, debug and MCU peripherals. */ @@ -65,6 +67,13 @@ void keyboard_init(void); void keyboard_task(void); /* it runs when host LED status is updated */ void keyboard_set_leds(uint8_t leds); +/* it runs whenever code has to behave differently on a slave */ +bool is_keyboard_master(void); + +void keyboard_pre_init_kb(void); +void keyboard_pre_init_user(void); +void keyboard_post_init_kb(void); +void keyboard_post_init_user(void); #ifdef __cplusplus }