Files
mr-library/Kconfig

227 lines
5.4 KiB
Plaintext
Raw Normal View History

2023-11-27 23:17:23 +08:00
mainmenu "mr-library"
menu "Device configure"
config MR_CFG_HEAP_SIZE
2023-12-07 13:02:56 +08:00
int "Heap size (Bytes)"
default 4096
range 32 2147483647
2023-11-27 23:17:23 +08:00
help
2023-12-07 13:02:56 +08:00
"Size of dynamic memory for system."
2023-11-27 23:17:23 +08:00
2023-12-17 03:09:20 +08:00
config MR_CFG_PRINTF_BUFSZ
int "Printf buffer size"
default 128
range 32 2147483647
help
"Size of the buffer used by the printf function."
2023-11-27 23:17:23 +08:00
config MR_USING_ASSERT
2023-12-17 03:09:20 +08:00
bool "Use assert"
2023-12-07 13:02:56 +08:00
default y
help
2023-12-17 03:09:20 +08:00
"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."
2023-11-27 23:17:23 +08:00
2023-12-12 21:57:44 +08:00
menu "Logging configure"
2023-12-17 03:09:20 +08:00
depends on MR_USING_LOG
config MR_USING_LOG_COLOR
bool "Use color log"
default y
help
"Use this option allows for the use of color log."
2023-12-12 21:57:44 +08:00
config MR_USING_LOG_ERROR
2023-12-17 03:09:20 +08:00
bool "Use error log"
2023-12-12 21:57:44 +08:00
default y
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of error log."
2023-12-12 21:57:44 +08:00
config MR_USING_LOG_WARN
2023-12-17 03:09:20 +08:00
bool "Use warning log"
2023-12-12 21:57:44 +08:00
default y
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of warning log."
2023-12-12 21:57:44 +08:00
config MR_USING_LOG_INFO
2023-12-17 03:09:20 +08:00
bool "Use info log"
2023-12-12 21:57:44 +08:00
default y
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of info log."
2023-12-12 21:57:44 +08:00
config MR_USING_LOG_DEBUG
2023-12-17 03:09:20 +08:00
bool "Use debug log"
2023-12-12 21:57:44 +08:00
default y
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of debug log."
config MR_USING_LOG_SUCCESS
bool "Use success log"
default y
help
"Use this option allows for the use of success log."
2023-12-12 21:57:44 +08:00
endmenu
2023-11-27 23:17:23 +08:00
config MR_CFG_NAME_MAX
2023-12-17 03:09:20 +08:00
int "Name max length"
2023-11-27 23:17:23 +08:00
default 8
range 4 1024
help
2023-12-27 23:48:59 +08:00
"Maximum length of device name."
2023-11-27 23:17:23 +08:00
config MR_CFG_DESC_MAX
2023-12-17 03:09:20 +08:00
int "Descriptors max number"
2023-12-14 00:42:02 +08:00
default 64
2023-11-27 23:17:23 +08:00
range 16 1024
help
2023-12-27 23:48:59 +08:00
"Maximum number of descriptors."
2023-11-27 23:17:23 +08:00
config MR_USING_RDWR_CTL
2023-12-17 03:09:20 +08:00
bool "Use read/write control"
2023-11-27 23:17:23 +08:00
default y
2023-12-07 13:02:56 +08:00
help
2023-12-17 03:09:20 +08:00
"Use this option allows for read and write control of devices."
2023-12-07 13:02:56 +08:00
config MR_USING_CONSOLE
2023-12-17 03:09:20 +08:00
bool "Use console"
2023-12-07 13:02:56 +08:00
default y
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of the console device."
2023-12-12 21:57:44 +08:00
2023-12-07 13:02:56 +08:00
menu "Console configure"
depends on MR_USING_CONSOLE
config MR_CFG_CONSOLE_NAME
2023-12-17 03:09:20 +08:00
string "Console name"
2023-12-07 13:02:56 +08:00
default "serial1"
help
2023-12-17 03:09:20 +08:00
"Name of the console device."
2023-12-07 13:02:56 +08:00
config MR_USING_CONSOLE_NONBLOCK
2023-12-17 03:09:20 +08:00
bool "Use console non-blocking"
2023-12-07 13:02:56 +08:00
default n
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of the console device in non-blocking mode."
2023-12-07 13:02:56 +08:00
endmenu
2023-11-27 23:17:23 +08:00
config MR_USING_ADC
2023-12-17 03:09:20 +08:00
bool "Use ADC device"
2023-11-27 23:17:23 +08:00
default n
2023-12-07 13:02:56 +08:00
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of ADC (Analog-to-Digital Converter) devices."
2023-11-27 23:17:23 +08:00
config MR_USING_CAN
2023-12-17 03:09:20 +08:00
bool "Use CAN device"
2023-11-27 23:17:23 +08:00
default n
2023-12-07 13:02:56 +08:00
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of CAN (Controller Area Network) devices."
2023-11-27 23:17:23 +08:00
menu "CAN configure"
depends on MR_USING_CAN
config MR_CFG_CAN_RD_BUFSZ
2023-12-07 13:02:56 +08:00
int "RX buffer size"
2023-11-27 23:17:23 +08:00
default 32
range 0 MR_CFG_HEAP_SIZE
help
2023-12-07 13:02:56 +08:00
"This option sets the size of the RX (receive) buffer used by the CAN device."
2023-11-27 23:17:23 +08:00
endmenu
config MR_USING_DAC
2023-12-17 03:09:20 +08:00
bool "Use DAC device"
2023-11-27 23:17:23 +08:00
default n
2023-12-07 13:02:56 +08:00
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of DAC (Digital-to-Analog Converter) devices."
2023-11-27 23:17:23 +08:00
config MR_USING_I2C
2023-12-17 03:09:20 +08:00
bool "Use I2C device"
2023-11-27 23:17:23 +08:00
default n
2023-12-07 13:02:56 +08:00
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of I2C (Inter-Integrated Circuit) devices."
2023-11-27 23:17:23 +08:00
menu "I2C configure"
depends on MR_USING_I2C
config MR_CFG_I2C_RD_BUFSZ
2023-12-07 13:02:56 +08:00
int "RX buffer size"
2023-11-27 23:17:23 +08:00
default 32
range 0 MR_CFG_HEAP_SIZE
help
2023-12-07 13:02:56 +08:00
"This option sets the size of the RX (receive) buffer used by the I2C device."
2023-12-14 00:42:02 +08:00
config MR_USING_SOFT_I2C
depends on MR_USING_PIN
2023-12-17 03:09:20 +08:00
bool "Use Soft I2C"
2023-12-14 00:42:02 +08:00
default n
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of soft I2C."
2023-11-27 23:17:23 +08:00
endmenu
config MR_USING_PIN
2023-12-17 03:09:20 +08:00
bool "Use Pin device"
2023-11-27 23:17:23 +08:00
default n
2023-12-07 13:02:56 +08:00
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of Pin devices."
2023-11-27 23:17:23 +08:00
2023-12-25 15:48:49 +08:00
config MR_USING_PWM
bool "Use PWM device"
default n
help
"Use this option allows for the use of PWM devices."
2023-11-27 23:17:23 +08:00
config MR_USING_SERIAL
2023-12-17 03:09:20 +08:00
bool "Use Serial device"
2023-11-27 23:17:23 +08:00
default n
2023-12-07 13:02:56 +08:00
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of Serial devices."
2023-11-27 23:17:23 +08:00
menu "Serial configure"
depends on MR_USING_SERIAL
config MR_CFG_SERIAL_RD_BUFSZ
2023-12-07 13:02:56 +08:00
int "RX buffer size"
2023-11-27 23:17:23 +08:00
default 32
range 0 MR_CFG_HEAP_SIZE
help
2023-12-07 13:02:56 +08:00
"This option sets the size of the RX (receive) buffer used by the Serial device."
2023-11-27 23:17:23 +08:00
config MR_CFG_SERIAL_WR_BUFSZ
2023-12-07 13:02:56 +08:00
int "TX buffer size for Serial"
2023-11-27 23:17:23 +08:00
default 0
range 0 MR_CFG_HEAP_SIZE
help
2023-12-07 13:02:56 +08:00
"This option sets the size of the TX (transmit) buffer used by the Serial device."
2023-11-27 23:17:23 +08:00
endmenu
config MR_USING_SPI
2023-12-17 03:09:20 +08:00
bool "Use SPI device"
2023-11-27 23:17:23 +08:00
default n
2023-12-07 13:02:56 +08:00
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of SPI (Serial Peripheral Interface) devices."
2023-11-27 23:17:23 +08:00
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
2023-12-07 13:02:56 +08:00
"This option sets the size of the RX (receive) buffer used by the SPI device."
2023-11-27 23:17:23 +08:00
endmenu
2023-11-29 15:17:02 +08:00
config MR_USING_TIMER
2023-12-17 03:09:20 +08:00
bool "Use Timer device"
2023-11-29 15:17:02 +08:00
default n
2023-12-07 13:02:56 +08:00
help
2023-12-17 03:09:20 +08:00
"Use this option allows for the use of Timer devices."
2023-11-27 23:17:23 +08:00
endmenu
2023-12-27 23:48:59 +08:00
source "driver/Kconfig"
source "components/Kconfig"