diff options
Diffstat (limited to 'quantum/main.c')
-rw-r--r-- | quantum/main.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/quantum/main.c b/quantum/main.c index a896a67c6..3814d371c 100644 --- a/quantum/main.c +++ b/quantum/main.c | |||
@@ -19,11 +19,21 @@ | |||
19 | void platform_setup(void); | 19 | void platform_setup(void); |
20 | 20 | ||
21 | void protocol_setup(void); | 21 | void protocol_setup(void); |
22 | void protocol_init(void); | 22 | void protocol_pre_init(void); |
23 | void protocol_post_init(void); | ||
23 | void protocol_pre_task(void); | 24 | void protocol_pre_task(void); |
24 | void protocol_post_task(void); | 25 | void protocol_post_task(void); |
25 | 26 | ||
26 | // Bodge as refactoring vusb sucks.... | 27 | // Bodge as refactoring this area sucks.... |
28 | void protocol_init(void) __attribute__((weak)); | ||
29 | void protocol_init(void) { | ||
30 | protocol_pre_init(); | ||
31 | |||
32 | keyboard_init(); | ||
33 | |||
34 | protocol_post_init(); | ||
35 | } | ||
36 | |||
27 | void protocol_task(void) __attribute__((weak)); | 37 | void protocol_task(void) __attribute__((weak)); |
28 | void protocol_task(void) { | 38 | void protocol_task(void) { |
29 | protocol_pre_task(); | 39 | protocol_pre_task(); |
@@ -44,7 +54,6 @@ int main(void) { | |||
44 | keyboard_setup(); | 54 | keyboard_setup(); |
45 | 55 | ||
46 | protocol_init(); | 56 | protocol_init(); |
47 | keyboard_init(); | ||
48 | 57 | ||
49 | /* Main loop */ | 58 | /* Main loop */ |
50 | while (true) { | 59 | while (true) { |