Initial commit for Bronze release
[o-du/l2.git] / src / phy_stub / l1_bdy2.c
1 /* This file handles TTI genertion */
2
3 #include <stdio.h>
4 #include <pthread.h>
5 #include "lphy_stub.h"
6
7 void *GenerateTicks(void *arg)
8 {
9    while(1)
10    {
11       sleep(10);
12       printf("\nTTI indication");
13       /* Send TTI indication to CL */
14       duSendEgtpTTIInd();
15    }
16 }
17
18 void duStartTtiThread()
19 {
20    pthread_t ttiThread;
21    int ret;
22
23    ret = pthread_create(&ttiThread, NULL, GenerateTicks, NULL);
24    if(ret)
25    {
26       printf("\nUnable to create thread");
27    }
28 }
29
30