aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-04-24 17:44:11 +0300
committerFred Sundvik <fsundvik@gmail.com>2016-04-24 17:44:11 +0300
commit6313cfd5597ffce0c70a472aa87ed68b6daa4419 (patch)
tree9411952c7f9cad138735fce92574a883047a3538
parent74baa4895c8efd409eb10eaf1e6cfc0e2677b45c (diff)
downloadqmk_firmware-6313cfd5597ffce0c70a472aa87ed68b6daa4419.tar.gz
qmk_firmware-6313cfd5597ffce0c70a472aa87ed68b6daa4419.zip
Fix some makefile issues, and symbol issues
-rw-r--r--visualizer.c8
-rw-r--r--visualizer.mk10
2 files changed, 12 insertions, 6 deletions
diff --git a/visualizer.c b/visualizer.c
index 81ec8298f..0684a26d8 100644
--- a/visualizer.c
+++ b/visualizer.c
@@ -77,8 +77,8 @@ static remote_object_t* remote_objects[] = {
77 77
78#endif 78#endif
79 79
80GDisplay* LCDDisplay; 80GDisplay* LCD_DISPLAY = 0;
81GDisplay* LEDDisplay; 81GDisplay* LED_DISPLAY = 0;
82 82
83 83
84void start_keyframe_animation(keyframe_animation_t* animation) { 84void start_keyframe_animation(keyframe_animation_t* animation) {
@@ -437,8 +437,8 @@ void visualizer_init(void) {
437 add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*) ); 437 add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*) );
438#endif 438#endif
439 // TODO: Make sure these works when either of these are disabled 439 // TODO: Make sure these works when either of these are disabled
440 LCDDisplay = gdispGetDisplay(0); 440 LCD_DISPLAY = gdispGetDisplay(0);
441 LEDDisplay = gdispGetDisplay(1); 441 LED_DISPLAY = gdispGetDisplay(1);
442 442
443 443
444 // We are using a low priority thread, the idea is to have it run only 444 // We are using a low priority thread, the idea is to have it run only
diff --git a/visualizer.mk b/visualizer.mk
index 96ca468e8..5cc199cf4 100644
--- a/visualizer.mk
+++ b/visualizer.mk
@@ -21,13 +21,13 @@
21# SOFTWARE. 21# SOFTWARE.
22 22
23GFXLIB = $(VISUALIZER_DIR)/ugfx 23GFXLIB = $(VISUALIZER_DIR)/ugfx
24SRC += $(GFXSRC) $(VISUALIZER_DIR)/visualizer.c 24SRC += $(VISUALIZER_DIR)/visualizer.c
25UINCDIR += $(GFXINC) $(VISUALIZER_DIR) 25UINCDIR += $(GFXINC) $(VISUALIZER_DIR)
26 26
27ifdef LCD_ENABLE 27ifdef LCD_ENABLE
28include $(GFXLIB)/gfx.mk
29UDEFS += -DLCD_ENABLE 28UDEFS += -DLCD_ENABLE
30ULIBS += -lm 29ULIBS += -lm
30USE_UGFX = yes
31endif 31endif
32 32
33ifdef LCD_BACKLIGHT_ENABLE 33ifdef LCD_BACKLIGHT_ENABLE
@@ -39,6 +39,12 @@ endif
39ifdef LED_ENABLE 39ifdef LED_ENABLE
40SRC += $(VISUALIZER_DIR)/led_test.c 40SRC += $(VISUALIZER_DIR)/led_test.c
41UDEFS += -DLED_ENABLE 41UDEFS += -DLED_ENABLE
42USE_UGFX = yes
43endif
44
45ifdef USE_UGFX
46include $(GFXLIB)/gfx.mk
47SRC += $(GFXSRC)
42endif 48endif
43 49
44ifndef VISUALIZER_USER 50ifndef VISUALIZER_USER