diff options
Diffstat (limited to 'tmk_core/common/keyboard.h')
| -rw-r--r-- | tmk_core/common/keyboard.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tmk_core/common/keyboard.h b/tmk_core/common/keyboard.h index 6442716fc..7738251b6 100644 --- a/tmk_core/common/keyboard.h +++ b/tmk_core/common/keyboard.h | |||
| @@ -58,13 +58,15 @@ static inline bool IS_RELEASED(keyevent_t event) { return (!IS_NOEVENT(event) && | |||
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | 60 | ||
| 61 | /* it runs once at early stage of startup before keyboard_init. */ | ||
| 62 | void keyboard_setup(void); | ||
| 63 | /* it runs once after initializing host side protocol, debug and MCU peripherals. */ | ||
| 61 | void keyboard_init(void); | 64 | void keyboard_init(void); |
| 65 | /* it runs repeatedly in main loop */ | ||
| 62 | void keyboard_task(void); | 66 | void keyboard_task(void); |
| 67 | /* it runs when host LED status is updated */ | ||
| 63 | void keyboard_set_leds(uint8_t leds); | 68 | void keyboard_set_leds(uint8_t leds); |
| 64 | 69 | ||
| 65 | __attribute__ ((weak)) void matrix_power_up(void) {} | ||
| 66 | __attribute__ ((weak)) void matrix_power_down(void) {} | ||
| 67 | |||
| 68 | #ifdef __cplusplus | 70 | #ifdef __cplusplus |
| 69 | } | 71 | } |
| 70 | #endif | 72 | #endif |
