summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index b794f23056..a2d35302eb 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -213,7 +213,7 @@ static void backlight_isr(void)
213 if (idle) 213 if (idle)
214 { 214 {
215#ifdef CPU_COLDFIRE 215#ifdef CPU_COLDFIRE
216 queue_post(&backlight_queue, BACKLIGHT_UNBOOST_CPU, NULL); 216 queue_post(&backlight_queue, BACKLIGHT_UNBOOST_CPU, 0);
217#endif 217#endif
218 timer_unregister(); 218 timer_unregister();
219 bl_timer_active = false; 219 bl_timer_active = false;
@@ -530,7 +530,7 @@ static void backlight_tick(void)
530 if(lcd_sleep_timer == 0) 530 if(lcd_sleep_timer == 0)
531 { 531 {
532 /* Queue on bl thread or freeze! */ 532 /* Queue on bl thread or freeze! */
533 queue_post(&backlight_queue, LCD_SLEEP, NULL); 533 queue_post(&backlight_queue, LCD_SLEEP, 0);
534 } 534 }
535 } 535 }
536#endif /* HAVE_LCD_SLEEP */ 536#endif /* HAVE_LCD_SLEEP */
@@ -579,7 +579,7 @@ void x5_backlight_shutdown(void)
579 queue_empty(&backlight_queue); 579 queue_empty(&backlight_queue);
580 tick_remove_task(backlight_tick); 580 tick_remove_task(backlight_tick);
581 /* Next time the thread runs, if at all, it will just remove itself. */ 581 /* Next time the thread runs, if at all, it will just remove itself. */
582 queue_post(&backlight_queue, BACKLIGHT_QUIT, NULL); 582 queue_post(&backlight_queue, BACKLIGHT_QUIT, 0);
583 __backlight_on(); 583 __backlight_on();
584} 584}
585#endif /* X5_BACKLIGHT_SHUTDOWN */ 585#endif /* X5_BACKLIGHT_SHUTDOWN */
@@ -587,12 +587,12 @@ void x5_backlight_shutdown(void)
587void backlight_on(void) 587void backlight_on(void)
588{ 588{
589 queue_remove_from_head(&backlight_queue, BACKLIGHT_ON); 589 queue_remove_from_head(&backlight_queue, BACKLIGHT_ON);
590 queue_post(&backlight_queue, BACKLIGHT_ON, NULL); 590 queue_post(&backlight_queue, BACKLIGHT_ON, 0);
591} 591}
592 592
593void backlight_off(void) 593void backlight_off(void)
594{ 594{
595 queue_post(&backlight_queue, BACKLIGHT_OFF, NULL); 595 queue_post(&backlight_queue, BACKLIGHT_OFF, 0);
596} 596}
597 597
598/* returns true when the backlight is on OR when it's set to always off */ 598/* returns true when the backlight is on OR when it's set to always off */
@@ -692,12 +692,12 @@ void lcd_set_sleep_after_backlight_off(int index)
692#ifdef HAVE_REMOTE_LCD 692#ifdef HAVE_REMOTE_LCD
693void remote_backlight_on(void) 693void remote_backlight_on(void)
694{ 694{
695 queue_post(&backlight_queue, REMOTE_BACKLIGHT_ON, NULL); 695 queue_post(&backlight_queue, REMOTE_BACKLIGHT_ON, 0);
696} 696}
697 697
698void remote_backlight_off(void) 698void remote_backlight_off(void)
699{ 699{
700 queue_post(&backlight_queue, REMOTE_BACKLIGHT_OFF, NULL); 700 queue_post(&backlight_queue, REMOTE_BACKLIGHT_OFF, 0);
701} 701}
702 702
703void remote_backlight_set_timeout(int index) 703void remote_backlight_set_timeout(int index)