summaryrefslogtreecommitdiff
path: root/firmware/export/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/thread.h')
-rw-r--r--firmware/export/thread.h5
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
25int create_thread(void* function, void* stack, int stack_size, char *name); 27int create_thread(void* function, void* stack, int stack_size, char *name);
26void switch_thread(void); 28void switch_thread(void);
29void sleep_thread(void);
30void wake_up_thread(void);
27void init_threads(void); 31void init_threads(void);
28int thread_stack_usage(int threadnum); 32int thread_stack_usage(int threadnum);
33void cpu_sleep(bool enabled);
29 34
30#endif 35#endif