summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h1
-rw-r--r--firmware/export/thread.h8
2 files changed, 8 insertions, 1 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 1b756cc6bd..6a3091de30 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -222,6 +222,7 @@
222 222
223#if (CONFIG_CODEC == SWCODEC) && !defined(SIMULATOR) && !defined(BOOTLOADER) 223#if (CONFIG_CODEC == SWCODEC) && !defined(SIMULATOR) && !defined(BOOTLOADER)
224#define HAVE_PRIORITY_SCHEDULING 224#define HAVE_PRIORITY_SCHEDULING
225#define HAVE_SCHEDULER_BOOSTCTRL
225#endif 226#endif
226 227
227/* define for all cpus from coldfire family */ 228/* define for all cpus from coldfire family */
diff --git a/firmware/export/thread.h b/firmware/export/thread.h
index cd532c8968..17e6e3aa88 100644
--- a/firmware/export/thread.h
+++ b/firmware/export/thread.h
@@ -131,12 +131,18 @@ struct thread_entry*
131 const char *name 131 const char *name
132 IF_PRIO(, int priority)); 132 IF_PRIO(, int priority));
133 133
134#ifdef HAVE_SCHEDULER_BOOSTCTRL
135void trigger_cpu_boost(void);
136#else
137#define trigger_cpu_boost()
138#endif
139
134void remove_thread(struct thread_entry *thread); 140void remove_thread(struct thread_entry *thread);
135void switch_thread(bool save_context, struct thread_entry **blocked_list); 141void switch_thread(bool save_context, struct thread_entry **blocked_list);
136void sleep_thread(int ticks); 142void sleep_thread(int ticks);
137void block_thread(struct thread_entry **thread, int timeout); 143void block_thread(struct thread_entry **thread, int timeout);
138void wakeup_thread(struct thread_entry **thread); 144void wakeup_thread(struct thread_entry **thread);
139void thread_set_priority(struct thread_entry *thread, int priority); 145int thread_set_priority(struct thread_entry *thread, int priority);
140void init_threads(void); 146void init_threads(void);
141int thread_stack_usage(const struct thread_entry *thread); 147int thread_stack_usage(const struct thread_entry *thread);
142int thread_get_status(const struct thread_entry *thread); 148int thread_get_status(const struct thread_entry *thread);