Zephyr integration: Add support for hosted test environment
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
e0a139240a
commit
03140d7f4b
|
@ -17,6 +17,7 @@
|
|||
#define __METAL_ZEPHYR_SYS__H__
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <zephyr/kernel.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -39,6 +40,11 @@ struct metal_state {
|
|||
struct metal_common_state common;
|
||||
};
|
||||
|
||||
static inline void metal_wait_usec(uint32_t usec_to_wait)
|
||||
{
|
||||
k_busy_wait(usec_to_wait);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue