Skip to content

Commit

Permalink
util.h: Add dependency on time_units.h
Browse files Browse the repository at this point in the history
The WAIT_FOR macro uses the 'k_us_to_cyc_ceil32' function declared
in zephyr/sys/time_units.h. It should have been included.

Fixes #56006

Signed-off-by: Yuval Peress <[email protected]>
  • Loading branch information
yperess committed Mar 23, 2023
1 parent 91140cb commit 014a6d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/zephyr/sys/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,11 @@ char *utf8_lcpy(char *dst, const char *src, size_t n);
}
#endif

/* This file must be included at the end of the !_ASMLANGUAGE guard.
* It depends on macros defined in this file above which cannot be forward declared.
*/
#include <zephyr/sys/time_units.h>

#endif /* !_ASMLANGUAGE */

/** @brief Number of bytes in @p x kibibytes */
Expand Down

0 comments on commit 014a6d6

Please sign in to comment.