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