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
Rach Indication
[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
523936a
..
d45ede3
100644
(file)
--- a/
src/phy_stub/l1_bdy2.c
+++ b/
src/phy_stub/l1_bdy2.c
@@
-22,16
+22,19
@@
#include <unistd.h>
#include <pthread.h>
#include "lphy_stub.h"
#include <unistd.h>
#include <pthread.h>
#include "lphy_stub.h"
+#include "du_log.h"
+
+uint16_t l1BuildAndSendSlotIndication();
void *GenerateTicks(void *arg)
{
void *GenerateTicks(void *arg)
{
- uint8_t counter =
2
;
+ uint8_t counter =
100
;
while(counter)
{
sleep(1);
while(counter)
{
sleep(1);
-
printf("
\nPHY_STUB: SLOT indication");
+
DU_LOG("\n
\nPHY_STUB: SLOT indication");
/* Send Slot indication indication to lower mac */
/* Send Slot indication indication to lower mac */
-
b
uildAndSendSlotIndication();
+
l1B
uildAndSendSlotIndication();
counter--;
}
}
counter--;
}
}
@@
-44,7
+47,7
@@
void duStartSlotIndicaion()
ret = pthread_create(&thread, NULL, GenerateTicks, NULL);
if(ret)
{
ret = pthread_create(&thread, NULL, GenerateTicks, NULL);
if(ret)
{
-
printf
("\nPHY_STUB: Unable to create thread");
+
DU_LOG
("\nPHY_STUB: Unable to create thread");
}
}
}
}