Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/releases/release-notes-4.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Removed APIs in this release
* Macro ``K_THREAD_STACK_MEMBER``, deprecated since v3.5.0, has been removed.
Use :c:macro:`K_KERNEL_STACK_MEMBER` instead.
* ``CBPRINTF_PACKAGE_COPY_*`` macros, deprecated since Zephyr 3.5.0, have been removed.
* ``_ENUM_TOKEN`` and ``_ENUM_UPPER_TOKEN`` macros, deprecated since Zephyr 2.7.0,
are no longer generated.

Deprecated in this release
==========================
Expand Down
4 changes: 0 additions & 4 deletions include/zephyr/devicetree.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
*
* _ENUM_IDX: property's value as an index into bindings enum
* _ENUM_VAL_<val>_EXISTS property's value as a token exists
* _ENUM_TOKEN: property's value as a token into bindings enum (string
* enum values are identifiers) [deprecated, use _STRING_TOKEN]
* _ENUM_UPPER_TOKEN: like _ENUM_TOKEN, but uppercased [deprecated, use
* _STRING_UPPER_TOKEN]
* _EXISTS: property is defined
* _FOREACH_PROP_ELEM: helper for "iterating" over values in the property
* _FOREACH_PROP_ELEM_VARGS: foreach functions with variable number of arguments
Expand Down
8 changes: 0 additions & 8 deletions scripts/dts/gen_defines.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,14 +672,6 @@ def enum_macros(prop: edtlib.Property, macro: str):
ret[macro + f"_IDX_{i}_EXISTS"] = 1
# DT_N_<node-id>_P_<prop-id>_IDX_<i>_ENUM_VAL_<val>_EXISTS 1
ret[macro + f"_IDX_{i}_ENUM_VAL_{subval}_EXISTS"] = 1
if not spec.enum_tokenizable:
continue

# DT_N_<node-id>_P_<prop-id>_IDX_<i>_ENUM_TOKEN
ret[macro + f"_IDX_{i}_ENUM_TOKEN"] = subval
if spec.enum_upper_tokenizable:
# DT_N_<node-id>_P_<prop-id>_IDX_<i>_ENUM_UPPER_TOKEN
ret[macro + f"_IDX_{i}_ENUM_UPPER_TOKEN"] = subval.upper()

return ret

Expand Down
Loading