summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-10-16 01:25:17 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-10-16 01:25:17 +0000
commita9b2fb5ee3114fe835f6515b6aeae7454f66d821 (patch)
treefc4e96d0c1f215565918406c8827b16b806c1345 /firmware/backlight.c
parenta3fbbc9fa7e12fd3fce122bbd235dc362050e024 (diff)
downloadrockbox-a9b2fb5ee3114fe835f6515b6aeae7454f66d821.tar.gz
rockbox-a9b2fb5ee3114fe835f6515b6aeae7454f66d821.zip
Finally full multicore support for PortalPlayer 502x targets with an eye towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 7cbdeb45e8..cfe87b387e 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -95,7 +95,7 @@ const signed char backlight_timeout_value[19] =
95static void backlight_thread(void); 95static void backlight_thread(void);
96static long backlight_stack[DEFAULT_STACK_SIZE/sizeof(long)]; 96static long backlight_stack[DEFAULT_STACK_SIZE/sizeof(long)];
97static const char backlight_thread_name[] = "backlight"; 97static const char backlight_thread_name[] = "backlight";
98static struct event_queue backlight_queue; 98static struct event_queue backlight_queue NOCACHEBSS_ATTR;
99 99
100static int backlight_timer; 100static int backlight_timer;
101static int backlight_timeout; 101static int backlight_timeout;
@@ -465,7 +465,7 @@ static void remote_backlight_update_state(void)
465 465
466void backlight_thread(void) 466void backlight_thread(void)
467{ 467{
468 struct event ev; 468 struct queue_event ev;
469 bool locked = false; 469 bool locked = false;
470 470
471 while(1) 471 while(1)
@@ -627,9 +627,9 @@ void backlight_init(void)
627 * status if necessary. */ 627 * status if necessary. */
628 628
629 create_thread(backlight_thread, backlight_stack, 629 create_thread(backlight_thread, backlight_stack,
630 sizeof(backlight_stack), backlight_thread_name 630 sizeof(backlight_stack), 0, backlight_thread_name
631 IF_PRIO(, PRIORITY_SYSTEM) 631 IF_PRIO(, PRIORITY_SYSTEM)
632 IF_COP(, CPU, false)); 632 IF_COP(, CPU));
633 tick_add_task(backlight_tick); 633 tick_add_task(backlight_tick);
634} 634}
635 635