FAPI Slot Indication Changes
[o-du/l2.git] / src / phy_stub / l1_bdy2.c
1 /* This file handles TTI genertion */
2 #include <stdio.h>
3 #include <unistd.h>
4 #include <pthread.h>
5 #include "lphy_stub.h"
6
7 void *GenerateTicks(void *arg)
8 {
9    uint8_t counter = 2;
10    while(counter)
11    {
12       sleep(1);
13       printf("\nPHY_STUB: SLOT indication");
14       /* Send Slot indication indication to lower mac */
15       buildAndSendSlotIndication();
16       counter--;
17    }
18 }
19
20 void duStartSlotIndicaion()
21 {
22    pthread_t thread;
23    int ret;
24
25    ret = pthread_create(&thread, NULL, GenerateTicks, NULL);
26    if(ret)
27    {
28       printf("\nPHY_STUB: Unable to create thread");
29    }
30 }
31
32