加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Kconfig 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
qqliyunpeng 提交于 2016-03-10 18:20 . commit all code
mainmenu "Main Menu"
comment "This is a comment to help to structure menu"
choice
prompt "Generic Choice"
default GEN_CHOICE1
help
This is a help text that can expand over multiple lines and give some information about
the configuration parameter.
config GEN_CHOICE1
bool "Choice 1"
config GEN_CHOICE2
bool "Choice 2"
select SHOW_MORE
config GEN_CHOICE3
bool "Choice 3"
select SHOW_MORE
select SHOW_EVEN_MORE
help
Even subitem can contain help text.
endchoice
config SHOW_MORE
bool
config SHOW_EVEN_MORE
bool
menu "Hidden 1"
visible if SHOW_MORE
menu "Nested 1"
menu "Nested 2"
comment "we can nest as deep as we want"
endmenu
endmenu
endmenu
config LEDON
bool "Led's states"
default y
comment "This item is visible only if the third option is selected"
menu "Hidden 2"
visible if SHOW_EVEN_MORE
depends on MENUDEPENDENCY
config ITEM1
bool "Item 1 - enables additional options"
default n
config ITEM2
depends on ITEM1
bool "Item 2 - depends on item 1"
default n
config ITEM3
bool "Item 3 - is set automatically"
default n
config ITEM4
bool "Item 4 - reverse dependancy"
select ITEM3
default n
endmenu
comment "Some different config types"
config STRING_PARAM
string "String Parameter"
config NUM_PARAM
int "Integer parameter between 0 an 100"
range 0 100
config NUM_PARAM2
int "HEX parameter"
config TRISTATE_PARAM
tristate "Three states"
menu "Subconfmenu"
source subconfig
endmenu
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化