From fbcda2a7881a17aff4c6178cde1c886c3c5d55be Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sat, 23 Nov 2024 16:09:15 -0500 Subject: [PATCH] [kernel] format Kconfig --- src/Kconfig | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/Kconfig b/src/Kconfig index ab3e55c1cf..34836d3383 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -1,9 +1,8 @@ -#include "rtconfig.h" menu "RT-Thread Kernel" config RT_NAME_MAX int "The maximal size of kernel object name" - range 1 64 + range 2 64 default 8 help Each kernel object, such as thread, timer, semaphore etc, has a name, @@ -18,6 +17,13 @@ config RT_USING_ARCH_DATA_TYPE Please re-define these data types in rtconfig_project.h file. +config RT_USING_NANO + bool "Enable RT-Thread Nano" + default n + help + RT-Thread Nano is a very small size and refined hard real-time kernel, + which is suited for the extremely resource-constrained MCU system. + config RT_USING_SMART bool "Enable RT-Thread Smart (microkernel on kernel/userland)" default n @@ -43,13 +49,6 @@ config RT_USING_SMART help RT-Thread Smart is a microkernel based operating system on RT-Thread. -config RT_USING_NANO - bool "Enable RT-Thread Nano" - default n - help - RT-Thread Nano with a very small size and refined hard real-time kernel, - which is very suited for the resource-constrained MCU system. - config RT_USING_AMP bool "Enable AMP (Asymmetric Multi-Processing)" default n @@ -115,6 +114,13 @@ config RT_TICK_PER_SECOND help System's tick frequency, Hz. +config RT_USING_OVERFLOW_CHECK + bool "Using stack overflow checking" + default y if RT_USING_DEBUG + help + Enable thread stack overflow checking. The stack overflow is checking when + each thread switch. + config RT_USING_HOOK bool "Enable system hook" default y @@ -348,13 +354,6 @@ menuconfig RT_USING_DEBUG depends on RT_USING_SMP default y if RT_USING_SMART default n - - config RT_USING_OVERFLOW_CHECK - bool "Using stack overflow checking" - default y - help - Enable thread stack overflow checking. The stack overflow is checking when - each thread switch. endif config RT_USING_CI_ACTION