diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2003-02-14 09:44:34 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2003-02-14 09:44:34 +0000 |
| commit | c4d8d970f6602c80d7362a41da8851dbbf59ae1b (patch) | |
| tree | 7e8f936eae5c1854c006c4fe134c4c2ce6f91291 /firmware/export | |
| parent | 84706a4188cea193a5a095855c1068b1c31a3875 (diff) | |
| download | rockbox-c4d8d970f6602c80d7362a41da8851dbbf59ae1b.zip rockbox-c4d8d970f6602c80d7362a41da8851dbbf59ae1b.tar.gz rockbox-c4d8d970f6602c80d7362a41da8851dbbf59ae1b.tar.bz2 rockbox-c4d8d970f6602c80d7362a41da8851dbbf59ae1b.tar.xz | |
The power-saving SLEEP patch by Simon Elén.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3259 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/thread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/thread.h b/firmware/export/thread.h index 7940ddf..7be58d0 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h @@ -19,12 +19,17 @@ #ifndef THREAD_H #define THREAD_H +#include <stdbool.h> + #define MAXTHREADS 16 #define DEFAULT_STACK_SIZE 0x400 /* Bytes */ int create_thread(void* function, void* stack, int stack_size, char *name); void switch_thread(void); +void sleep_thread(void); +void wake_up_thread(void); void init_threads(void); int thread_stack_usage(int threadnum); +void cpu_sleep(bool enabled); #endif |