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 21, 2023
1 parent 9889e8e commit dd618e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/zephyr/sys/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -626,4 +626,7 @@ char *utf8_lcpy(char *dst, const char *src, size_t n);
* @}
*/

/* This include must be added at the end of the file to avoid a circular dependency */
#include <zephyr/sys/time_units.h>

#endif /* ZEPHYR_INCLUDE_SYS_UTIL_H_ */

0 comments on commit dd618e9

Please sign in to comment.