KConfig 3.7 KB
Newer Older
B
Bernard Xiong 已提交
1
menu "RT-Thread Kernel"
B
bernard 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

config RT_NAME_MAX
    int "The maximal size of kernel object name"
    range 2 32
    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.

config RT_ALIGN_SIZE
    int "Alignment size for CPU architecture data access"
    default 4
    help
        Alignment size for CPU architecture data access

config RT_THREAD_PRIORITY_MAX
    int "The maximal level value of priority of thread"
    range 8 256
    default 32

config RT_TICK_PER_SECOND
    int "Tick frequency, Hz"
    range 10 1000
    default 100
    help
        System's tick frequency, Hz.

config RT_DEBUG
    bool "Enable debug features"
    default y

if RT_DEBUG

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.

config RT_DEBUG_INIT
41
    int "Enable system initialization informat print"
B
bernard 已提交
42
    default 0
B
bernard 已提交
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
    help
        print the procedure name of initialization

config RT_DEBUG_THREAD
    bool "Enable thread switch information dump"
    default n
    help
        print the switch to/from thread name when each thread context switch

endif

config RT_USING_HOOK
    bool "Enable system hook"
    default y
    help
        Enable the hook function when system running, such as idle thread hook, thread context switch etc.
59

60
config IDLE_THREAD_STACK_SIZE
61 62
    int "The stack size of idle thread"
    default 256
B
bernard 已提交
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102

config RT_USING_TIMER_SOFT
    bool "Enable software timer with a timer thread"
    default n
    help
        the timeout function context of soft-timer is under a high priority timer thread.

if RT_USING_TIMER_SOFT
config RT_TIMER_THREAD_PRIO
    int "The priority level value of timer thread"
    default 4

config RT_TIMER_THREAD_STACK_SIZE
    int "The stack size of timer thread"
    default 512

endif

menu "Inter-Thread communication"

config RT_USING_SEMAPHORE
    bool "Enable semaphore"
    default y

config RT_USING_MUTEX
    bool "Enable mutex"
    default y

config RT_USING_EVENT
    bool "Enable event flag"
    default y

config RT_USING_MAILBOX
    bool "Enable mailbox"
    default y

config RT_USING_MESSAGEQUEUE
    bool "Enable message queue"
    default y

B
bernard 已提交
103 104 105 106 107 108 109
config RT_USING_SIGNALS
    bool "Enable signals"
    select RT_USING_MEMPOOL
    default n
    help
        A signal is an asynchronous notification sent to a specific thread 
        in order to notify it of an event that occurred.
B
bernard 已提交
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
endmenu

menu "Memory Management"

    config RT_USING_MEMPOOL
        bool "Using memory pool"
        default y
        help
            Using static memory fixed partition

    config RT_USING_MEMHEAP
        bool "Using memory heap object"
        default n
        help
            Using memory heap object to manage dynamic memory heap.

    config RT_USING_HEAP
        bool "Using dynamic memory management"
        default y

    if RT_USING_HEAP

        config RT_USING_SMALL_MEM
            bool "The memory management for small memory"

        config RT_USING_SLAB
            bool "Using SLAB memory management for large memory"

    endif

endmenu

menu "Kernel Device Object"

    config RT_USING_DEVICE
        bool "Using device object"
        default y

    config RT_USING_CONSOLE
        bool "Using console for rt_kprintf"
        default y

    if RT_USING_CONSOLE
        config RT_CONSOLEBUF_SIZE
            int "the buffer size for console log printf"
            default 128

        config RT_CONSOLE_DEVICE_NAME
            string "the device name for console"
            default "uart"
    endif

endmenu

B
bernard 已提交
164 165 166 167
config RT_USING_MODULE
    bool "The dynamic module feature"
    default n

B
bernard 已提交
168
endmenu