Files
mr-library/Kconfig

89 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

2023-11-27 23:17:23 +08:00
mainmenu "mr-library"
2024-01-18 07:55:48 +08:00
menu "System configure"
# Assert
2023-11-27 23:17:23 +08:00
config MR_USING_ASSERT
2024-01-18 07:55:48 +08:00
bool "Use assert"
default y
help
"Use this option allows the use of assert statements in the code."
2024-01-18 07:55:48 +08:00
# Heap
config MR_CFG_HEAP_SIZE
int "Heap size (Bytes)"
default 4096
range 32 2147483647
help
"This option sets the size of the heap used by the library."
# 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-18 07:55:48 +08:00
# Printf
menu "Printf configure"
config MR_CFG_PRINTF_BUFSZ
int "Printf buffer size"
default 128
range 32 2147483647
2024-01-10 16:47:46 +08:00
help
2024-01-18 07:55:48 +08:00
"This option sets the buffer size used by the printf function."
2023-11-27 23:17:23 +08:00
2024-01-18 07:55:48 +08:00
config MR_CFG_PRINTF_DEV_NAME
string "Printf device name"
default "serial1"
2024-01-10 16:47:46 +08:00
help
2024-01-18 07:55:48 +08:00
"This option sets the name of the device used by the printf function."
2023-11-27 23:17:23 +08:00
2024-01-18 07:55:48 +08:00
config MR_USING_PRINTF_NONBLOCKING
bool "Use printf non-blocking"
default n
2024-01-10 16:47:46 +08:00
help
2024-01-18 07:55:48 +08:00
"Use this option allows for the use of the printf device non-blocking."
2024-01-10 16:47:46 +08:00
endmenu
2023-11-27 23:17:23 +08:00
endmenu
2024-01-18 07:55:48 +08:00
# Device
source "device/Kconfig"
# Driver
2023-12-27 23:48:59 +08:00
source "driver/Kconfig"
# Components
source "components/Kconfig"