diff options
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/compilers/common/Kconfig | 32 | ||||
| -rw-r--r-- | components/libc/cplusplus/Kconfig | 20 |
2 files changed, 51 insertions, 1 deletions
diff --git a/components/libc/compilers/common/Kconfig b/components/libc/compilers/common/Kconfig index dad2e2e2ff..bc7bc9f323 100644 --- a/components/libc/compilers/common/Kconfig +++ b/components/libc/compilers/common/Kconfig @@ -5,27 +5,57 @@ menu "Timezone and Daylight Saving Time" bool "Enable fully version timezone and daylight saving time with database" select PKG_USING_TZ_DATABASE # select timezone database software package default n + help + RT_LIBC_USING_FULL_TZ_DST controls whether "full timezone and daylight saving time functionality with database" is enabled. + + Essentially, it allows RT-Thread to support precise time conversion based on a global timezone database. + + Features: + Global timezone adaptation + Automatic daylight saving time (DST) handling + Standard time interface compatibility + + Dependencies: + Once enabled (disabled by default), it automatically enables the tz_database package in the RT-Thread software package. + + After enabling RT_LIBC_USING_FULL_TZ_DST, the project will automatically import the tz_database code and data files. + config RT_LIBC_USING_LIGHT_TZ_DST bool "Enable lightweight timezone and daylight saving time" depends on !RT_LIBC_USING_FULL_TZ_DST default y + help + RT_LIBC_USING_LIGHT_TZ_DST is a lightweight timezone and daylight saving time configuration option within the C standard library (libc) component of RT-Thread. + It is a lightweight alternative to RT_LIBC_USING_FULL_TZ_DST (the full timezone solution). + + It achieves local timezone conversion using a fixed time offset, rather than relying on a large timezone database. + + This option is enabled by default, but only one of RT_LIBC_USING_FULL_TZ_DST can be enabled at a time. + When enabled, three sub-configuration options will be displayed. + if RT_LIBC_USING_LIGHT_TZ_DST config RT_LIBC_TZ_DEFAULT_HOUR int "Set the default local timezone (hour)" range -12 12 default 8 + help + The hour offset of the local time zone relative to UTC (range -12~12, default 8, corresponding to UTC+8 Beijing time). config RT_LIBC_TZ_DEFAULT_MIN int "Set the default local timezone (minute)" range -59 59 default 0 - + help + Minute offset (range -59~59, default 0) config RT_LIBC_TZ_DEFAULT_SEC int "Set the default local timezone (second)" range -59 59 default 0 + help + Second offset (range -59~59, default 0) + endif endmenu diff --git a/components/libc/cplusplus/Kconfig b/components/libc/cplusplus/Kconfig index 1dcc6f389c..c7420c4d5e 100644 --- a/components/libc/cplusplus/Kconfig +++ b/components/libc/cplusplus/Kconfig @@ -1,6 +1,13 @@ menuconfig RT_USING_CPLUSPLUS bool "Enable C++ features" default n + help + RT_USING_CPLUSPLUS is the master switch for enabling C++ support. + + It is off by default. Once enabled, RT-Thread's build system ensures that a C++ compiler is used to compile .cpp files, + and it links C++ standard libraries (such as libstdc++ or libc++) into the final firmware. + Other C++-related configuration items that depend on it become visible and configurable. + if RT_USING_CPLUSPLUS @@ -11,13 +18,26 @@ if RT_USING_CPLUSPLUS select RT_USING_POSIX_STDIO select RT_USING_PTHREADS select RT_USING_RTC + help + RT_USING_CPLUSPLUS11 controls whether support for multithreading features in the C++11 standard is enabled. + + It is disabled by default. Once enabled, RT_USING_POSIX_FS, RT_USING_POSIX_STDIO, RT_USING_PTHREADS, and RT_USING_RTC will also be enabled. config RT_USING_CPP_WRAPPER bool "Enable RT-Thread APIs C++ wrapper" default n + help + RT_USING_CPP_WRAPPER is used to enable the C++ wrapper for the RT-Thread core API. + When this option is enabled (Off by default), RT-Thread provides an additional set of C++ code that encapsulates the underlying C API using classes and objects. config RT_USING_CPP_EXCEPTIONS bool "Enable C++ exceptions (will increase overhead)" default n + help + RT_USING_CPP_EXCEPTIONS is used to enable C++ exception handling. + It is disabled by default. Enabling this option pulls in the C++ exception runtime support, which typically increases + code size (flash/ROM usage), RAM consumption, and may add extra runtime overhead for stack unwinding and exception + bookkeeping. On resource-constrained or strict real-time systems, this additional overhead should be evaluated carefully + before turning the option on. endif |
