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).
165 lines
2.8 KiB
Plaintext
165 lines
2.8 KiB
Plaintext
menu "Libc options"
|
|
|
|
# ==================================
|
|
# ARCH
|
|
# ==================================
|
|
choice
|
|
prompt "Arch"
|
|
default MR_USE_ARCH_32BIT
|
|
|
|
config MR_USE_ARCH_32BIT
|
|
bool "32B"
|
|
|
|
config MR_USE_ARCH_64BIT
|
|
bool "64B"
|
|
endchoice
|
|
|
|
# ==================================
|
|
# ASSERT
|
|
# ==================================
|
|
choice
|
|
prompt "Assertion"
|
|
default MR_USE_ASSERT
|
|
|
|
config MR_USE_ASSERT_LIBC
|
|
bool "STD"
|
|
|
|
config MR_USE_ASSERT_3PARTY
|
|
bool "3RD"
|
|
|
|
config MR_USE_ASSERT
|
|
bool "INT"
|
|
|
|
config MR_USE_ASSERT_NONE
|
|
bool "NONE"
|
|
endchoice
|
|
|
|
# ==================================
|
|
# MALLOC
|
|
# ==================================
|
|
choice
|
|
prompt "Malloc"
|
|
default MR_USE_MALLOC
|
|
|
|
config MR_USE_MALLOC_LIBC
|
|
bool "STD"
|
|
|
|
config MR_USE_MALLOC_3PARTY
|
|
bool "3RD"
|
|
|
|
config MR_USE_MALLOC
|
|
bool "INT"
|
|
endchoice
|
|
|
|
config MR_CFG_HEAP_SIZE
|
|
depends on !MR_USE_MALLOC_LIBC
|
|
int "Heap memory size"
|
|
default 4096
|
|
range 24 2147483647
|
|
|
|
# ==================================
|
|
# SPRINTF
|
|
# ==================================
|
|
choice
|
|
prompt "Sprintf"
|
|
default MR_USE_SPRINTF
|
|
|
|
config MR_USE_SPRINTF_LIBC
|
|
bool "STD"
|
|
|
|
config MR_USE_SPRINTF_3PARTY
|
|
bool "3RD"
|
|
|
|
config MR_USE_SPRINTF
|
|
bool "INT"
|
|
endchoice
|
|
|
|
# ==================================
|
|
# SSCANF
|
|
# ==================================
|
|
choice
|
|
prompt "Sscanf"
|
|
default MR_USE_SSCANF
|
|
|
|
config MR_USE_SSCANF_LIBC
|
|
bool "STD"
|
|
|
|
config MR_USE_SSCANF_3PARTY
|
|
bool "3RD"
|
|
|
|
config MR_USE_SSCANF
|
|
bool "INT"
|
|
endchoice
|
|
|
|
# ==================================
|
|
# STRING
|
|
# ==================================
|
|
choice
|
|
prompt "String"
|
|
default MR_USE_STRING
|
|
|
|
config MR_USE_STRING_LIBC
|
|
bool "STD"
|
|
|
|
config MR_USE_STRING_3PARTY
|
|
bool "3RD"
|
|
|
|
config MR_USE_STRING
|
|
bool "INT"
|
|
endchoice
|
|
|
|
config MR_USE_STRING_SAFE
|
|
depends on MR_USE_STRING
|
|
bool "Use string null-ptr safety"
|
|
default n
|
|
|
|
# ==================================
|
|
# ATOMIC
|
|
# ==================================
|
|
choice
|
|
prompt "Atomic"
|
|
default MR_USE_ATOMIC
|
|
|
|
config MR_USE_ATOMIC_LIBC
|
|
bool "STD"
|
|
|
|
config MR_USE_ATOMIC_3PARTY
|
|
bool "3RD"
|
|
|
|
config MR_USE_ATOMIC
|
|
bool "INT"
|
|
endchoice
|
|
|
|
# ==================================
|
|
# TYPES
|
|
# ==================================
|
|
choice
|
|
prompt "Types"
|
|
default MR_USE_TYPES
|
|
|
|
config MR_USE_TYPES_LIBC
|
|
bool "STD"
|
|
|
|
config MR_USE_TYPES
|
|
bool "INT"
|
|
endchoice
|
|
|
|
# ==================================
|
|
# ERRNO
|
|
# ==================================
|
|
choice
|
|
prompt "Errno"
|
|
default MR_USE_ERRNO
|
|
|
|
config MR_USE_ERRNO_LIBC
|
|
bool "STD"
|
|
|
|
config MR_USE_ERRNO_3PARTY
|
|
bool "3RD"
|
|
|
|
config MR_USE_ERRNO
|
|
bool "INT"
|
|
endchoice
|
|
|
|
endmenu
|