summaryrefslogtreecommitdiff
path: root/components/Kconfig
diff options
context:
space:
mode:
author[email protected] <[email protected]>2018-07-31 17:05:01 +0800
committer[email protected] <[email protected]>2018-07-31 17:05:01 +0800
commitbbb879717c2e39fabddaf3b46bb55faaf55608ef (patch)
treedd10c1b8750989a940c52eb35be9ab8ad7e20c0d /components/Kconfig
parent290eeb455b84ba06c62fcb40575e4837f677b4b5 (diff)
add config main thread priority
Diffstat (limited to 'components/Kconfig')
-rw-r--r--components/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/Kconfig b/components/Kconfig
index 3bcae8e163..c221f12df3 100644
--- a/components/Kconfig
+++ b/components/Kconfig
@@ -13,6 +13,11 @@ if RT_USING_COMPONENTS_INIT
config RT_MAIN_THREAD_STACK_SIZE
int "Set main thread stack size"
default 2048
+ config RT_MAIN_THREAD_PRIORITY
+ int "Set main thread priority"
+ default 4 if RT_THREAD_PRIORITY_8
+ default 10 if RT_THREAD_PRIORITY_32
+ default 85 if RT_THREAD_PRIORITY_256
endif
endif