Files
mr-library/Kconfig

286 lines
7.8 KiB
Plaintext
Raw Normal View History

2023-11-27 23:17:23 +08:00
mainmenu "mr-library"
menu "Device configure"
# Heap
2023-11-27 23:17:23 +08:00
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
"This option sets the size of the heap used by the library."
2023-12-17 03:09:20 +08:00
# Assert
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."
2024-01-10 16:47:46 +08:00
# Printf
menu "Printf configure"
config MR_CFG_PRINTF_BUFSZ
int "Printf buffer size"
default 128
range 32 2147483647
help
"This option sets the buffer size used by the printf function."
2024-01-10 16:47:46 +08:00
config MR_CFG_PRINTF_DEV_NAME
string "Printf device name"
default "serial1"
help
2024-01-10 16:47:46 +08:00
"This option sets the name of the device used by the printf function."
2024-01-10 16:47:46 +08:00
config MR_USING_PRINTF_NONBLOCKING
bool "Use printf non-blocking"
default n
help
2024-01-10 16:47:46 +08:00
"Use this option allows for the use of the printf device non-blocking."
endmenu
# Log
2024-01-10 16:47:46 +08:00
menu "Log configure"
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."
2024-01-10 16:47:46 +08:00
config MR_USING_LOG_COLOR
bool "Use print color log"
default n
help
"Use this option allows for the use of print color log."
2023-12-12 21:57:44 +08:00
endmenu
2024-01-10 16:47:46 +08:00
# Device
2024-01-01 17:11:38 +08:00
config MR_CFG_DEV_NAME_MAX
2023-12-17 03:09:20 +08:00
int "Name max length"
2023-11-27 23:17:23 +08:00
range 4 1024
2024-01-10 16:47:46 +08:00
default 12
2023-11-27 23:17:23 +08:00
help
"This option sets the max length of the 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-11-27 23:17:23 +08:00
range 16 1024
2024-01-10 16:47:46 +08:00
default 64
2023-11-27 23:17:23 +08:00
help
"This option sets the max number of descriptors."
2023-11-27 23:17:23 +08:00
config MR_USING_DESC_CHECK
bool "Use descriptor available check"
default y
help
"Use this option to allow you to check whether the descriptor is available."
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
2024-01-10 16:47:46 +08:00
# ADC
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."
menu "ADC configure"
depends on MR_USING_ADC
2023-11-27 23:17:23 +08:00
2024-01-10 16:47:46 +08:00
config MR_USING_ADC_CHANNEL_CHECK
bool "Use channel available check"
default y
help
"Use this option to allow you to check whether the channel is available."
config MR_USING_ADC_AUTO_DISABLE
bool "Use auto disable channel"
default y
help
"Use this option to allow the channel to be automatically disabled when the device is turned off."
endmenu
2023-11-27 23:17:23 +08:00
2024-01-10 16:47:46 +08:00
# CAN
config MR_USING_CAN
bool "Use CAN device"
default n
help
"Use this option allows for the use of CAN (Controller Area Network) devices."
2023-11-27 23:17:23 +08:00
menu "CAN configure"
2024-01-10 16:47:46 +08:00
depends on MR_USING_CAN
2023-11-27 23:17:23 +08:00
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
range 0 MR_CFG_HEAP_SIZE
2024-01-10 16:47:46 +08:00
default 32
2023-11-27 23:17:23 +08:00
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
2024-01-10 16:47:46 +08:00
# DAC
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."
menu "DAC configure"
depends on MR_USING_DAC
2023-11-27 23:17:23 +08:00
2024-01-10 16:47:46 +08:00
config MR_USING_DAC_AUTO_DISABLE
bool "Use auto disable channel"
default y
help
"Use this option to allow the channel to be automatically disabled when the device is turned off."
config MR_USING_DAC_CHANNEL_CHECK
bool "Use channel available check"
default y
help
"Use this option to allow you to check whether the channel is available."
endmenu
2023-11-27 23:17:23 +08:00
2024-01-10 16:47:46 +08:00
# I2C
config MR_USING_I2C
bool "Use I2C device"
default n
help
"Use this option allows for the use of I2C devices."
2023-11-27 23:17:23 +08:00
menu "I2C configure"
2024-01-10 16:47:46 +08:00
depends on MR_USING_I2C
2023-11-27 23:17:23 +08:00
2024-01-10 16:47:46 +08:00
config MR_CFG_I2C_RD_BUFSZ
int "RX buffer size"
range 0 MR_CFG_HEAP_SIZE
default 32
help
"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
2023-12-17 03:09:20 +08:00
bool "Use Soft I2C"
2024-01-10 16:47:46 +08:00
default y
2023-12-14 00:42:02 +08:00
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
2024-01-10 16:47:46 +08:00
# Pin
config MR_USING_PIN
bool "Use Pin device"
default n
help
"Use this option allows for the use of Pin devices."
menu "Pin configure"
depends on MR_USING_PIN
config MR_USING_PIN_CHECK
bool "Use pin available check"
default y
help
"Use this option to allow you to check whether the pin is available."
endmenu
2023-11-27 23:17:23 +08:00
2024-01-10 16:47:46 +08:00
# PWM
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."
2024-01-10 16:47:46 +08:00
menu "PWM configure"
depends on MR_USING_PWM
2024-01-13 03:15:02 +08:00
config MR_USING_PWM_AUTO_DISABLE
bool "Use auto disable channel"
default y
help
"Use this option to allow the channel to be automatically disabled when the device is turned off."
config MR_USING_PWM_CHANNEL_CHECK
bool "Use channel available check"
default y
help
"Use this option to allow you to check whether the channel is available."
2024-01-10 16:47:46 +08:00
endmenu
2023-12-25 15:48:49 +08:00
2024-01-10 16:47:46 +08:00
# Serial
config MR_USING_SERIAL
bool "Use Serial device"
default n
help
"Use this option allows for the use of Serial devices."
2023-11-27 23:17:23 +08:00
menu "Serial configure"
2024-01-10 16:47:46 +08:00
depends on MR_USING_SERIAL
2023-11-27 23:17:23 +08:00
2024-01-10 16:47:46 +08:00
config MR_CFG_SERIAL_RD_BUFSZ
int "RX buffer size"
range 0 MR_CFG_HEAP_SIZE
default 32
help
"This option sets the size of the RX (receive) buffer used by the Serial device."
2023-11-27 23:17:23 +08:00
2024-01-10 16:47:46 +08:00
config MR_CFG_SERIAL_WR_BUFSZ
int "TX buffer size"
range 0 MR_CFG_HEAP_SIZE
default 0
help
"This option sets the size of the TX (transmit) buffer used by the Serial device."
2023-11-27 23:17:23 +08:00
endmenu
2024-01-10 16:47:46 +08:00
# SPI
config MR_USING_SPI
bool "Use SPI device"
default n
help
"Use this option allows for the use of SPI (Serial Peripheral Interface) devices."
2023-11-27 23:17:23 +08:00
menu "SPI configure"
2024-01-10 16:47:46 +08:00
depends on MR_USING_SPI
2023-11-27 23:17:23 +08:00
2024-01-10 16:47:46 +08:00
config MR_CFG_SPI_RD_BUFSZ
int "RX buffer size"
range 0 MR_CFG_HEAP_SIZE
default 32
help
"This option sets the size of the RX (receive) buffer used by the SPI device."
2023-11-27 23:17:23 +08:00
endmenu
2024-01-10 16:47:46 +08:00
# Timer
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
2024-01-10 16:47:46 +08:00
"Use this option allows for the use of Timer devices."
menu "Timer configure"
depends on MR_USING_TIMER
endmenu
2023-11-27 23:17:23 +08:00
endmenu
# Driver
2023-12-27 23:48:59 +08:00
source "driver/Kconfig"
# Components
source "components/Kconfig"