summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2007-07-27 17:53:43 +0000
committerAntoine Cellerier <dionoea@videolan.org>2007-07-27 17:53:43 +0000
commit6f13f4cd8ffda4c77b5a42d88f7a8ed4ee86c991 (patch)
tree0c1132820ae40d4b56e999242fd9da76e8b67b52
parent092c178784ca5ebf13feaf4a2d63f46e19dc1c37 (diff)
downloadrockbox-6f13f4cd8ffda4c77b5a42d88f7a8ed4ee86c991.tar.gz
rockbox-6f13f4cd8ffda4c77b5a42d88f7a8ed4ee86c991.zip
Cosmetics (remove tab and trailing spaces)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14028 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/backlight.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 5549430c45..10894e5c70 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -210,22 +210,22 @@ static void backlight_isr(void)
210{ 210{
211 int timer_period; 211 int timer_period;
212 bool idle = false; 212 bool idle = false;
213 213
214 timer_period = TIMER_FREQ / 1000 * BL_PWM_INTERVAL / 1000; 214 timer_period = TIMER_FREQ / 1000 * BL_PWM_INTERVAL / 1000;
215 switch (bl_dim_state) 215 switch (bl_dim_state)
216 { 216 {
217 /* New cycle */ 217 /* New cycle */
218 case DIM_STATE_START: 218 case DIM_STATE_START:
219 bl_pwm_counter = 0; 219 bl_pwm_counter = 0;
220 bl_cycle_counter++; 220 bl_cycle_counter++;
221 221
222 if (bl_dim_current > 0 && bl_dim_current < BL_PWM_COUNT) 222 if (bl_dim_current > 0 && bl_dim_current < BL_PWM_COUNT)
223 { 223 {
224 __backlight_on(); 224 __backlight_on();
225 bl_pwm_counter = bl_dim_current; 225 bl_pwm_counter = bl_dim_current;
226 timer_period = timer_period * bl_pwm_counter / BL_PWM_COUNT; 226 timer_period = timer_period * bl_pwm_counter / BL_PWM_COUNT;
227 bl_dim_state = DIM_STATE_MAIN; 227 bl_dim_state = DIM_STATE_MAIN;
228 } 228 }
229 else 229 else
230 { 230 {
231 if (bl_dim_current) 231 if (bl_dim_current)
@@ -235,9 +235,9 @@ static void backlight_isr(void)
235 if (bl_dim_current == bl_dim_target) 235 if (bl_dim_current == bl_dim_target)
236 idle = true; 236 idle = true;
237 } 237 }
238 238
239 break ; 239 break ;
240 240
241 /* Dim main screen */ 241 /* Dim main screen */
242 case DIM_STATE_MAIN: 242 case DIM_STATE_MAIN:
243 __backlight_off(); 243 __backlight_off();
@@ -258,7 +258,7 @@ static void backlight_isr(void)
258 bl_cycle_counter = 0; 258 bl_cycle_counter = 0;
259 } 259 }
260 260
261 if (idle) 261 if (idle)
262 { 262 {
263#ifdef CPU_COLDFIRE 263#ifdef CPU_COLDFIRE
264 queue_post(&backlight_queue, BACKLIGHT_UNBOOST_CPU, 0); 264 queue_post(&backlight_queue, BACKLIGHT_UNBOOST_CPU, 0);
@@ -624,7 +624,7 @@ void backlight_init(void)
624{ 624{
625 queue_init(&backlight_queue, true); 625 queue_init(&backlight_queue, true);
626 queue_set_irq_safe(&backlight_queue, true); 626 queue_set_irq_safe(&backlight_queue, true);
627 627
628#ifndef SIMULATOR 628#ifndef SIMULATOR
629 if (__backlight_init()) 629 if (__backlight_init())
630 { 630 {
@@ -644,9 +644,9 @@ void backlight_init(void)
644#endif 644#endif
645 645
646 create_thread(backlight_thread, backlight_stack, 646 create_thread(backlight_thread, backlight_stack,
647 sizeof(backlight_stack), backlight_thread_name 647 sizeof(backlight_stack), backlight_thread_name
648 IF_PRIO(, PRIORITY_SYSTEM) 648 IF_PRIO(, PRIORITY_SYSTEM)
649 IF_COP(, CPU, false)); 649 IF_COP(, CPU, false));
650 tick_add_task(backlight_tick); 650 tick_add_task(backlight_tick);
651} 651}
652 652