diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 9821e2067d9..3b2fc777805 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -363,11 +363,12 @@ config LEGACY_DEVICETREE_MACROS Zephyr 2.2 and previous versions, rather than the devicetree.h API introduced during the Zephyr 2.3 development cycle. -config LEGACY_ZEPHYR_INT_TYPES - bool "Allow the use of the legacy zephyr integer types" +config DEPRECATED_ZEPHYR_INT_TYPES + bool "Allow the use of the deprecated zephyr integer types" help - Allows the use of the legacy Zephyr integer typedefs defined in - Zephyr 2.3 and previous versions. + Allows the use of the deprecated Zephyr integer typedefs defined in + Zephyr 2.3 and previous versions. These types are: + u8_t, u16_t, u32_t, u64_t, s8_t, s16_t, s32_t, and s64_t. endmenu endmenu diff --git a/doc/releases/release-notes-2.4.rst b/doc/releases/release-notes-2.4.rst index 2f5c496cea7..2996703ed76 100644 --- a/doc/releases/release-notes-2.4.rst +++ b/doc/releases/release-notes-2.4.rst @@ -10,7 +10,7 @@ We are pleased to announce the release of Zephyr RTOS version 2.4.0. Major enhancements with this release include: * Moved to using C99 integer types and deprecate Zephyr integer types. The - Zephyr types can be enabled by Kconfig LEGACY_ZEPHYR_INT_TYPES option. + Zephyr types can be enabled by Kconfig DEPRECATED_ZEPHYR_INT_TYPES option. The following sections provide detailed lists of changes by component. @@ -35,7 +35,7 @@ API Changes *********** * Moved to using C99 integer types and deprecate Zephyr integer types. The - Zephyr types can be enabled by Kconfig LEGACY_ZEPHYR_INT_TYPES option. + Zephyr types can be enabled by Kconfig DEPRECATED_ZEPHYR_INT_TYPES option. Deprecated in this release ========================== diff --git a/include/zephyr/types.h b/include/zephyr/types.h index bd97c8e9387..1c199532111 100644 --- a/include/zephyr/types.h +++ b/include/zephyr/types.h @@ -13,7 +13,7 @@ extern "C" { #endif -#ifdef CONFIG_LEGACY_ZEPHYR_INT_TYPES +#ifdef CONFIG_DEPRECATED_ZEPHYR_INT_TYPES typedef signed char s8_t; typedef signed short s16_t; diff --git a/tests/deprecated/inttype/prj.conf b/tests/deprecated/inttype/prj.conf index b230bb0ce6e..a7bfcafe58d 100644 --- a/tests/deprecated/inttype/prj.conf +++ b/tests/deprecated/inttype/prj.conf @@ -1 +1 @@ -CONFIG_LEGACY_ZEPHYR_INT_TYPES=y +CONFIG_DEPRECATED_ZEPHYR_INT_TYPES=y