Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Slot indication from MAC to DU APP : LWLC fix and LC
[o-du/l2.git]
/
src
/
phy_stub
/
l1_bdy2.c
diff --git
a/src/phy_stub/l1_bdy2.c
b/src/phy_stub/l1_bdy2.c
index
d45ede3
..
67f66f8
100644
(file)
--- a/
src/phy_stub/l1_bdy2.c
+++ b/
src/phy_stub/l1_bdy2.c
@@
-21,6
+21,7
@@
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
+#include <time.h>
#include "lphy_stub.h"
#include "du_log.h"
#include "lphy_stub.h"
#include "du_log.h"
@@
-28,15
+29,20
@@
uint16_t l1BuildAndSendSlotIndication();
void *GenerateTicks(void *arg)
{
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
);
- DU_LOG("\n\nPHY_STUB: SLOT indication");
+
nanosleep(&req, (struct timespec *)NULL
);
+
/* Send Slot indication indication to lower mac */
l1BuildAndSendSlotIndication();
/* Send Slot indication indication to lower mac */
l1BuildAndSendSlotIndication();
- counter--;
}
}
+ return((void *)NULLP);
}
void duStartSlotIndicaion()
}
void duStartSlotIndicaion()