Skip to content

Commit

Permalink
[nasa/nos3#176] Added OS_TaskDelay redefine to utnos3.h;
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucas9 committed Jul 1, 2024
1 parent 452824c commit ca64d00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ut_assert/inc/utnos3.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#define UTTEST_H_NOS3_LINUX

#include <pthread.h>
#include <unistd.h>

#define NE_Bus int32_t
#define NE_SimTime int32_t

Expand All @@ -16,4 +18,6 @@ NE_SimTime CFE_PSP_sim_time;

void NE_bus_set_time(NE_Bus *bus, NE_SimTime time){return;}

#define OS_TaskDelay(x) usleep(x > 1000 ? 999999 : x * 1000)

#endif

0 comments on commit ca64d00

Please sign in to comment.