X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fphy_stub%2Fl1_bdy2.c;h=67f66f88600c68968262d48cd0f6d3e6a623f34c;hb=fe3e15254e67fd96dbfabec4bf7245c3b64ee415;hp=1db65f485a444ee56e60977b8571a563f09ced27;hpb=8340c342ebcfc82193c3f66e7f15047c1e37399b;p=o-du%2Fl2.git diff --git a/src/phy_stub/l1_bdy2.c b/src/phy_stub/l1_bdy2.c index 1db65f485..67f66f886 100644 --- a/src/phy_stub/l1_bdy2.c +++ b/src/phy_stub/l1_bdy2.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "lphy_stub.h" #include "du_log.h" @@ -28,13 +29,18 @@ uint16_t l1BuildAndSendSlotIndication(); void *GenerateTicks(void *arg) { - uint8_t counter = 100; - while(counter) + int milisec = 1; /* 1ms */ + struct timespec req = {0}; + + req.tv_sec = 0; + req.tv_nsec = milisec * 1000000L; + + while(1) { - sleep(1); + nanosleep(&req, (struct timespec *)NULL); + /* Send Slot indication indication to lower mac */ l1BuildAndSendSlotIndication(); - counter--; } return((void *)NULLP); }