1 Star 0 Fork 197

freewear/mr-library

forked from MacRsh/mr-library 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Kconfig 4.90 KB
一键复制 编辑 原始数据 按行查看 历史
MacRsh 提交于 2023-12-17 03:09 . 1.新增自动构建脚本。
mainmenu "mr-library"
menu "Device configure"
config MR_CFG_HEAP_SIZE
int "Heap size (Bytes)"
default 4096
range 32 2147483647
help
"Size of dynamic memory for system."
config MR_CFG_PRINTF_BUFSZ
int "Printf buffer size"
default 128
range 32 2147483647
help
"Size of the buffer used by the printf function."
config MR_USING_ASSERT
bool "Use assert"
default y
help
"Use this option allows the use of assert statements in the code."
config MR_USING_LOG
bool "Use log"
default y
help
"Use this option allows for the use of log."
menu "Logging configure"
depends on MR_USING_LOG
config MR_USING_LOG_ERROR
bool "Use error log"
default y
help
"Use this option allows for the use of error log."
config MR_USING_LOG_WARN
bool "Use warning log"
default y
help
"Use this option allows for the use of warning log."
config MR_USING_LOG_INFO
bool "Use info log"
default y
help
"Use this option allows for the use of info log."
config MR_USING_LOG_DEBUG
bool "Use debug log"
default y
help
"Use this option allows for the use of debug log."
endmenu
config MR_CFG_NAME_MAX
int "Name max length"
default 8
range 4 1024
help
"Maximum length of device name"
config MR_CFG_DESC_MAX
int "Descriptors max number"
default 64
range 16 1024
help
"Maximum number of descriptors"
config MR_USING_RDWR_CTL
bool "Use read/write control"
default y
help
"Use this option allows for read and write control of devices."
config MR_USING_CONSOLE
bool "Use console"
default y
help
"Use this option allows for the use of the console device."
menu "Console configure"
depends on MR_USING_CONSOLE
config MR_CFG_CONSOLE_NAME
string "Console name"
default "serial1"
help
"Name of the console device."
config MR_USING_CONSOLE_NONBLOCK
bool "Use console non-blocking"
default n
help
"Use this option allows for the use of the console device in non-blocking mode."
endmenu
config MR_USING_ADC
bool "Use ADC device"
default n
help
"Use this option allows for the use of ADC (Analog-to-Digital Converter) devices."
config MR_USING_CAN
bool "Use CAN device"
default n
help
"Use this option allows for the use of CAN (Controller Area Network) devices."
menu "CAN configure"
depends on MR_USING_CAN
config MR_CFG_CAN_RD_BUFSZ
int "RX buffer size"
default 32
range 0 MR_CFG_HEAP_SIZE
help
"This option sets the size of the RX (receive) buffer used by the CAN device."
endmenu
config MR_USING_DAC
bool "Use DAC device"
default n
help
"Use this option allows for the use of DAC (Digital-to-Analog Converter) devices."
config MR_USING_I2C
bool "Use I2C device"
default n
help
"Use this option allows for the use of I2C (Inter-Integrated Circuit) devices."
menu "I2C configure"
depends on MR_USING_I2C
config MR_CFG_I2C_RD_BUFSZ
int "RX buffer size"
default 32
range 0 MR_CFG_HEAP_SIZE
help
"This option sets the size of the RX (receive) buffer used by the I2C device."
config MR_USING_SOFT_I2C
depends on MR_USING_PIN
bool "Use Soft I2C"
default n
help
"Use this option allows for the use of soft I2C."
endmenu
config MR_USING_PIN
bool "Use Pin device"
default n
help
"Use this option allows for the use of Pin devices."
config MR_USING_SERIAL
bool "Use Serial device"
default n
help
"Use this option allows for the use of Serial devices."
menu "Serial configure"
depends on MR_USING_SERIAL
config MR_CFG_SERIAL_RD_BUFSZ
int "RX buffer size"
default 32
range 0 MR_CFG_HEAP_SIZE
help
"This option sets the size of the RX (receive) buffer used by the Serial device."
config MR_CFG_SERIAL_WR_BUFSZ
int "TX buffer size for Serial"
default 0
range 0 MR_CFG_HEAP_SIZE
help
"This option sets the size of the TX (transmit) buffer used by the Serial device."
endmenu
config MR_USING_SPI
bool "Use SPI device"
default n
help
"Use this option allows for the use of SPI (Serial Peripheral Interface) devices."
menu "SPI configure"
depends on MR_USING_SPI
config MR_CFG_SPI_RD_BUFSZ
int "RX buffer size"
default 32
range 0 MR_CFG_HEAP_SIZE
help
"This option sets the size of the RX (receive) buffer used by the SPI device."
endmenu
config MR_USING_TIMER
bool "Use Timer device"
default n
help
"Use this option allows for the use of Timer devices."
endmenu
source "driver/Kconfig"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/freewear/mr-library.git
git@gitee.com:freewear/mr-library.git
freewear
mr-library
mr-library
master

搜索帮助