Zephyr integration: Add support for hosted test environment

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-10-13 10:47:57 +02:00 committed by Carlo Caione
parent e0a139240a
commit 03140d7f4b
1 changed files with 6 additions and 0 deletions

View File

@ -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