Skip to content

Commit

Permalink
Zephyr integration: Add support for hosted test environment
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
  • Loading branch information
aescolar committed Oct 13, 2023
1 parent 9854dcf commit 4e8d789
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libmetal/lib/system/zephyr/sleep.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ static inline int __metal_sleep_usec(unsigned int usec)
return 0;
}

static inline void __metal_cpu_yield(void)
{
Z_SPIN_DELAY(1);
}

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 4e8d789

Please sign in to comment.