Files
mr-library/Kconfig

199 lines
4.9 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
config MR_USING_ASSERT
2023-12-07 13:02:56 +08:00
bool "Enable assert"
default y
help
"Enabling this option allows the use of assert statements in the code."
2023-11-27 23:17:23 +08:00
2023-12-12 21:57:44 +08:00
menu "Logging configure"
config MR_USING_LOG_ERROR
bool "Enable error log"
default y
help
"Enabling this option allows for the use of error log."
config MR_USING_LOG_WARN
bool "Enable warning log"
default y
help
"Enabling this option allows for the use of warning log."
config MR_USING_LOG_INFO
bool "Enable info log"
default y
help
"Enabling this option allows for the use of info log."
config MR_USING_LOG_DEBUG
bool "Enable debug log"
default y
help
"Enabling this option allows for the use of debug log."
endmenu
2023-11-27 23:17:23 +08:00
config MR_CFG_NAME_MAX
2023-12-07 13:02:56 +08:00
int "Max length of device name"
2023-11-27 23:17:23 +08:00
default 8
range 4 1024
help
2023-12-07 13:02:56 +08:00
"Maximum length of name"
2023-11-27 23:17:23 +08:00
config MR_CFG_DESC_MAX
2023-12-07 13:02:56 +08:00
int "Max number of descriptors"
2023-12-14 00:42:02 +08:00
default 64
2023-11-27 23:17:23 +08:00
range 16 1024
help
2023-12-07 13:02:56 +08:00
"Maximum number of descriptors"
2023-11-27 23:17:23 +08:00
config MR_USING_RDWR_CTL
bool "Enable read/write control"
default y
2023-12-07 13:02:56 +08:00
help
"Enabling this option allows for read and write control of devices."
config MR_USING_CONSOLE
bool "Enable console"
default y
help
"Enabling 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
string "Console device name"
default "serial1"
help
"This option sets the name of the console device."
config MR_USING_CONSOLE_NONBLOCK
bool "Console device non-blocking read/write"
default n
help
"Enable or disable non-blocking read/write for the console device."
endmenu
2023-11-27 23:17:23 +08:00
2023-12-08 21:33:18 +08:00
config MR_CFG_PRINTF_BUFSZ
2023-12-07 13:02:56 +08:00
int "Size of printf buffer"
default 128
2023-12-08 21:33:18 +08:00
range 32 2147483647
2023-12-07 13:02:56 +08:00
help
"This option sets the size of the buffer used for printf operations."
2023-12-03 19:35:46 +08:00
2023-11-27 23:17:23 +08:00
config MR_USING_ADC
bool "Enable ADC device"
default n
2023-12-07 13:02:56 +08:00
help
"Enabling 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
bool "Enable CAN device"
default n
2023-12-07 13:02:56 +08:00
help
"Enabling 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
bool "Enable DAC device"
default n
2023-12-07 13:02:56 +08:00
help
"Enabling 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
bool "Enable I2C device"
default n
2023-12-07 13:02:56 +08:00
help
"Enabling 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
bool "Enable soft I2C"
default n
help
"Enabling this option allows for the use of soft I2C."
2023-11-27 23:17:23 +08:00
endmenu
config MR_USING_PIN
bool "Enable Pin device"
default n
2023-12-07 13:02:56 +08:00
help
"Enabling this option allows for the use of Pin devices."
2023-11-27 23:17:23 +08:00
config MR_USING_SERIAL
bool "Enable Serial device"
default n
2023-12-07 13:02:56 +08:00
help
"Enabling 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-11-28 14:00:30 +08:00
bool "Enable SPI device"
2023-11-27 23:17:23 +08:00
default n
2023-12-07 13:02:56 +08:00
help
"Enabling 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
bool "Enable Timer device"
default n
2023-12-07 13:02:56 +08:00
help
"Enabling this option allows for the use of Timer devices."
2023-11-27 23:17:23 +08:00
endmenu
2023-12-07 13:02:56 +08:00
source "driver/Kconfig"