Files
mr-library/include/mr-X/Kconfig
MacRsh 8b077d287c feat(bsp): New bsp for ch32 has been added.
1.Add the general part bsp of ch32 (including system clock, software interrupts, interrupt controllers, etc.). Supports V00X/V10X/V20X/V30X (Although the V00X series is supported, the sram of the chip is too small and it is not recommended for use).
2025-07-10 01:08:03 +08:00

100 lines
1.9 KiB
Plaintext

menu "Kernel options"
# ==================================
# ENTRY
# ==================================
config MR_USE_ENTRY
bool "Use entry"
default n
# ==================================
# CLOCK
# ==================================
config MR_CFG_CLOCK_HOOK_SIZE
int "Clock hook size"
default 2
range 2 128
config MR_CFG_TICK_PER_SECOND
int "Tick per-second"
default 1000
range 1 2147483647
# ==================================
# PRINTF
# ==================================
config MR_USE_PRINTF
bool "Use printf"
default n
config MR_CFG_PRINTF_BUF_SIZE
depends on MR_USE_PRINTF
int "Printf buffer size"
default 64
range 8 65535
config MR_USE_PRINTF_SAFE
depends on MR_USE_PRINTF
bool "Use printf safe"
default n
# ==================================
# TIMER
# ==================================
config MR_USE_TIMER
bool "Use timer"
default y
# ==================================
# WORKQUEUE
# ==================================
config MR_USE_WORKQUEUE
select MR_USE_TIMER
bool "Use workqueue"
default y
config MR_USE_WORKQUEUE_HOOK
depends on MR_USE_WORKQUEUE
bool "Use workqueue hook"
default n
# ==================================
# IRQ
# ==================================
config MR_USE_IRQ
bool "Use irq"
default y
config MR_CFG_IRQ_TABLE_SIZE
depends on MR_USE_IRQ
int "Irq table size"
default 32
range 4 1024
config MR_USE_IRQ_DEFER
depends on MR_USE_IRQ
select MR_USE_WORKQUEUE
bool "Use irq defer"
default y
config MR_USE_IRQ_DEFER_HOOK
depends on MR_USE_IRQ_DEFER
select MR_USE_WORKQUEUE_HOOK
bool "Use irq defer hook"
default n
# ==================================
# ASYNC
# ==================================
config MR_USE_ASYNC
select MR_USE_WORKQUEUE
bool "Use async"
default y
config MR_USE_ASYNC_SYNC
depends on MR_USE_ASYNC
bool "Use async sync"
default n
endmenu