diff options
Diffstat (limited to 'firmware/export/thread.h')
-rw-r--r-- | firmware/export/thread.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/firmware/export/thread.h b/firmware/export/thread.h index df18f7b095..0b1500cd99 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h | |||
@@ -42,11 +42,20 @@ | |||
42 | #define PRIORITY_SYSTEM 6 /* All other firmware threads */ | 42 | #define PRIORITY_SYSTEM 6 /* All other firmware threads */ |
43 | #define PRIORITY_BACKGROUND 8 /* Normal application threads */ | 43 | #define PRIORITY_BACKGROUND 8 /* Normal application threads */ |
44 | 44 | ||
45 | /* TODO: Only a minor tweak to create_thread would be needed to let | ||
46 | * thread slots be caller allocated - no essential threading functionality | ||
47 | * depends upon an array */ | ||
45 | #if CONFIG_CODEC == SWCODEC | 48 | #if CONFIG_CODEC == SWCODEC |
49 | |||
50 | #ifdef HAVE_RECORDING | ||
51 | #define MAXTHREADS 18 | ||
52 | #else | ||
46 | #define MAXTHREADS 17 | 53 | #define MAXTHREADS 17 |
54 | #endif | ||
55 | |||
47 | #else | 56 | #else |
48 | #define MAXTHREADS 11 | 57 | #define MAXTHREADS 11 |
49 | #endif | 58 | #endif /* CONFIG_CODE == * */ |
50 | 59 | ||
51 | #define DEFAULT_STACK_SIZE 0x400 /* Bytes */ | 60 | #define DEFAULT_STACK_SIZE 0x400 /* Bytes */ |
52 | 61 | ||