diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-10-16 01:25:17 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-10-16 01:25:17 +0000 |
commit | a9b2fb5ee3114fe835f6515b6aeae7454f66d821 (patch) | |
tree | fc4e96d0c1f215565918406c8827b16b806c1345 /firmware/drivers/button.c | |
parent | a3fbbc9fa7e12fd3fce122bbd235dc362050e024 (diff) | |
download | rockbox-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/drivers/button.c')
-rw-r--r-- | firmware/drivers/button.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 851b5b9b20..25c590323a 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -46,7 +46,7 @@ | |||
46 | #define MAX_EVENT_AGE HZ | 46 | #define MAX_EVENT_AGE HZ |
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | struct event_queue button_queue; | 49 | struct event_queue button_queue NOCACHEBSS_ATTR; |
50 | 50 | ||
51 | static long lastbtn; /* Last valid button status */ | 51 | static long lastbtn; /* Last valid button status */ |
52 | static long last_read; /* Last button status, for debouncing/filtering */ | 52 | static long last_read; /* Last button status, for debouncing/filtering */ |
@@ -300,7 +300,7 @@ int button_queue_count( void ) | |||
300 | 300 | ||
301 | long button_get(bool block) | 301 | long button_get(bool block) |
302 | { | 302 | { |
303 | struct event ev; | 303 | struct queue_event ev; |
304 | int pending_count = queue_count(&button_queue); | 304 | int pending_count = queue_count(&button_queue); |
305 | 305 | ||
306 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 306 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
@@ -330,7 +330,7 @@ long button_get(bool block) | |||
330 | 330 | ||
331 | long button_get_w_tmo(int ticks) | 331 | long button_get_w_tmo(int ticks) |
332 | { | 332 | { |
333 | struct event ev; | 333 | struct queue_event ev; |
334 | 334 | ||
335 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 335 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
336 | /* Be sure to keep boosted state. */ | 336 | /* Be sure to keep boosted state. */ |