Skip to content
Commit 70c4aa42 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Andrew Boie
Browse files

sys_sem: straighten build time definition macros



Commit db48d3e2 ("sys_sem: add build time definition macros")
recently introduced SYS_SEM_DEFINE() and defined it in terms of
Z_DECL_ALIGN() and __in_section() to force the _k_sem linker section.

It is however cleaner and less obscur to use Z_STRUCT_SECTION_ITERABLE()
and list the _sys_sem linker section alongside the _k_sem one.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent 844d5b40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment