diff options
Diffstat (limited to 'firmware/export/thread.h')
-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 7940ddfcf6..7be58d0931 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h | |||
@@ -19,12 +19,17 @@ | |||
19 | #ifndef THREAD_H | 19 | #ifndef THREAD_H |
20 | #define THREAD_H | 20 | #define THREAD_H |
21 | 21 | ||
22 | #include <stdbool.h> | ||
23 | |||
22 | #define MAXTHREADS 16 | 24 | #define MAXTHREADS 16 |
23 | #define DEFAULT_STACK_SIZE 0x400 /* Bytes */ | 25 | #define DEFAULT_STACK_SIZE 0x400 /* Bytes */ |
24 | 26 | ||
25 | int create_thread(void* function, void* stack, int stack_size, char *name); | 27 | int create_thread(void* function, void* stack, int stack_size, char *name); |
26 | void switch_thread(void); | 28 | void switch_thread(void); |
29 | void sleep_thread(void); | ||
30 | void wake_up_thread(void); | ||
27 | void init_threads(void); | 31 | void init_threads(void); |
28 | int thread_stack_usage(int threadnum); | 32 | int thread_stack_usage(int threadnum); |
33 | void cpu_sleep(bool enabled); | ||
29 | 34 | ||
30 | #endif | 35 | #endif |