zephyr: Use deprecated instead of legacy for Kconfig int types

Rename the Kconfig symbol from LEGACY_ZEPHYR_INT_TYPES to
DEPRECATED_ZEPHYR_INT_TYPES.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-06-08 08:29:19 -05:00 committed by Kumar Gala
commit 1737bd082d
4 changed files with 9 additions and 8 deletions

View file

@ -363,11 +363,12 @@ config LEGACY_DEVICETREE_MACROS
Zephyr 2.2 and previous versions, rather than the devicetree.h Zephyr 2.2 and previous versions, rather than the devicetree.h
API introduced during the Zephyr 2.3 development cycle. API introduced during the Zephyr 2.3 development cycle.
config LEGACY_ZEPHYR_INT_TYPES config DEPRECATED_ZEPHYR_INT_TYPES
bool "Allow the use of the legacy zephyr integer types" bool "Allow the use of the deprecated zephyr integer types"
help help
Allows the use of the legacy Zephyr integer typedefs defined in Allows the use of the deprecated Zephyr integer typedefs defined in
Zephyr 2.3 and previous versions. 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
endmenu endmenu

View file

@ -10,7 +10,7 @@ We are pleased to announce the release of Zephyr RTOS version 2.4.0.
Major enhancements with this release include: Major enhancements with this release include:
* Moved to using C99 integer types and deprecate Zephyr integer types. The * 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. 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 * 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 Deprecated in this release
========================== ==========================

View file

@ -13,7 +13,7 @@
extern "C" { extern "C" {
#endif #endif
#ifdef CONFIG_LEGACY_ZEPHYR_INT_TYPES #ifdef CONFIG_DEPRECATED_ZEPHYR_INT_TYPES
typedef signed char s8_t; typedef signed char s8_t;
typedef signed short s16_t; typedef signed short s16_t;

View file

@ -1 +1 @@
CONFIG_LEGACY_ZEPHYR_INT_TYPES=y CONFIG_DEPRECATED_ZEPHYR_INT_TYPES=y