Pārlūkot izejas kodu

[kernel] RT_NAME_MAX set the range from 1
RT_NAME_MAX为0是nano中使用,完整版中不支持const name

Meco Man 2 gadi atpakaļ
vecāks
revīzija
a2676b0544
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      src/Kconfig

+ 1 - 2
src/Kconfig

@@ -3,12 +3,11 @@ menu "RT-Thread Kernel"
 
 config RT_NAME_MAX
     int "The maximal size of kernel object name"
-    range 0 64
+    range 1 64
     default 8
     help
         Each kernel object, such as thread, timer, semaphore etc, has a name,
         the RT_NAME_MAX is the maximal size of this object name.
-        If RT_NAME_MAX sets as 0, the name will be const.
 
 config RT_USING_ARCH_DATA_TYPE
     bool "Use the data types defined in ARCH_CPU"