board native_sim/posix: Provide NEVER/NSI_NEVER definitions

Some native_posix specific apps/tests use the macro NEVER
provided it also for native_sim until all have switched
to the new NSI_NEVER.

And ensure NSI_NEVER is also avaiable when building
for native_posix to ease the transition.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-11-23 11:44:35 +01:00 committed by Fabio Baltieri
parent 2231c3ab97
commit 7332eb2ea7
2 changed files with 3 additions and 0 deletions

View file

@ -15,6 +15,7 @@ extern "C" {
#endif
#define NEVER UINT64_MAX
#define NSI_NEVER UINT64_MAX
void hwm_one_event(void);
void hwm_init(void);

View file

@ -33,6 +33,8 @@ static ALWAYS_INLINE uint64_t hwm_get_time(void)
return nsi_hws_get_time();
}
#define NEVER NSI_NEVER
#ifdef __cplusplus
}
#endif