Skip to content

Commit

Permalink
zephyr: Use deprecated instead of legacy for Kconfig int types
Browse files Browse the repository at this point in the history
Rename the Kconfig symbol from LEGACY_ZEPHYR_INT_TYPES to
DEPRECATED_ZEPHYR_INT_TYPES.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak committed Jun 9, 2020
1 parent 2291de6 commit 1737bd0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions Kconfig.zephyr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/releases/release-notes-2.4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
==========================
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/deprecated/inttype/prj.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CONFIG_LEGACY_ZEPHYR_INT_TYPES=y
CONFIG_DEPRECATED_ZEPHYR_INT_TYPES=y

0 comments on commit 1737bd0

Please sign in to comment.