diff options
| author | Fred Sundvik <fsundvik@gmail.com> | 2016-07-07 12:46:10 +0300 |
|---|---|---|
| committer | Fred Sundvik <fsundvik@gmail.com> | 2016-07-07 12:46:10 +0300 |
| commit | 07d0d5cbe48d7afaf0bc8c9916d40179ec51cb42 (patch) | |
| tree | 0cf84f2066fc5d285a04f4213f74daa534eb4d17 /tmk_core | |
| parent | 9772e697a04472f3c710376bfb2919ec2c3672a3 (diff) | |
| download | qmk_firmware-07d0d5cbe48d7afaf0bc8c9916d40179ec51cb42.tar.gz qmk_firmware-07d0d5cbe48d7afaf0bc8c9916d40179ec51cb42.zip | |
Makefile fixes and update of Visualizer
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/common/keyboard.c | 8 | ||||
| -rw-r--r-- | tmk_core/protocol/chibios/main.c | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c index 3a1262a9f..c46a701b3 100644 --- a/tmk_core/common/keyboard.c +++ b/tmk_core/common/keyboard.c | |||
| @@ -29,6 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 29 | #include "sendchar.h" | 29 | #include "sendchar.h" |
| 30 | #include "eeconfig.h" | 30 | #include "eeconfig.h" |
| 31 | #include "backlight.h" | 31 | #include "backlight.h" |
| 32 | #include "action_layer.h" | ||
| 32 | #ifdef BOOTMAGIC_ENABLE | 33 | #ifdef BOOTMAGIC_ENABLE |
| 33 | # include "bootmagic.h" | 34 | # include "bootmagic.h" |
| 34 | #else | 35 | #else |
| @@ -52,6 +53,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 52 | #ifdef SERIAL_LINK_ENABLE | 53 | #ifdef SERIAL_LINK_ENABLE |
| 53 | # include "serial_link/system/serial_link.h" | 54 | # include "serial_link/system/serial_link.h" |
| 54 | #endif | 55 | #endif |
| 56 | #ifdef VISUALIZER_ENABLE | ||
| 57 | # include "visualizer/visualizer.h" | ||
| 58 | #endif | ||
| 55 | 59 | ||
| 56 | #ifdef MATRIX_HAS_GHOST | 60 | #ifdef MATRIX_HAS_GHOST |
| 57 | static bool has_ghost_in_row(uint8_t row) | 61 | static bool has_ghost_in_row(uint8_t row) |
| @@ -181,6 +185,10 @@ MATRIX_LOOP_END: | |||
| 181 | serial_link_update(); | 185 | serial_link_update(); |
| 182 | #endif | 186 | #endif |
| 183 | 187 | ||
| 188 | #ifdef VISUALIZER_ENABLE | ||
| 189 | visualizer_update(default_layer_state, layer_state, host_keyboard_leds()); | ||
| 190 | #endif | ||
| 191 | |||
| 184 | // update LED | 192 | // update LED |
| 185 | if (led_status != host_keyboard_leds()) { | 193 | if (led_status != host_keyboard_leds()) { |
| 186 | led_status = host_keyboard_leds(); | 194 | led_status = host_keyboard_leds(); |
diff --git a/tmk_core/protocol/chibios/main.c b/tmk_core/protocol/chibios/main.c index aeb11752f..6bf9c1668 100644 --- a/tmk_core/protocol/chibios/main.c +++ b/tmk_core/protocol/chibios/main.c | |||
| @@ -38,6 +38,9 @@ | |||
| 38 | #ifdef SERIAL_LINK_ENABLE | 38 | #ifdef SERIAL_LINK_ENABLE |
| 39 | #include "serial_link/system/serial_link.h" | 39 | #include "serial_link/system/serial_link.h" |
| 40 | #endif | 40 | #endif |
| 41 | #ifdef VISUALIZER_ENABLE | ||
| 42 | #include "visualizer/visualizer.h" | ||
| 43 | #endif | ||
| 41 | #include "suspend.h" | 44 | #include "suspend.h" |
| 42 | 45 | ||
| 43 | 46 | ||
| @@ -101,6 +104,10 @@ int main(void) { | |||
| 101 | /* init printf */ | 104 | /* init printf */ |
| 102 | init_printf(NULL,sendchar_pf); | 105 | init_printf(NULL,sendchar_pf); |
| 103 | 106 | ||
| 107 | #ifdef VISUALIZER_ENABLE | ||
| 108 | visualizer_init(); | ||
| 109 | #endif | ||
| 110 | |||
| 104 | #ifdef SERIAL_LINK_ENABLE | 111 | #ifdef SERIAL_LINK_ENABLE |
| 105 | init_serial_link(); | 112 | init_serial_link(); |
| 106 | #endif | 113 | #endif |
