Commit 2f4e52e4 authored by Raymond Knopp's avatar Raymond Knopp

got rid of old RU code in lte-enb-nbiot.c

added some hooks for nbiot in lte-ru.c. Still need to adapt RU_t and PHY_VARS_eNB_NB_IoT structures
parent 44873997
This diff is collapsed.
......@@ -1093,10 +1093,13 @@ int check_sync(RU_t *ru, RU_t *ru_master, int subframe){
void wakeup_L1s(RU_t *ru) {
int i;
PHY_VARS_eNB **eNB_list = ru->eNB_list;
PHY_VARS_eNB_NB_IoT **eNB_nbiot_list = ru->eNB_nbiot_list;
LOG_D(PHY,"wakeup_L1s (num %d) for RU %d (%d.%d)\n",ru->num_eNB,ru->idx, ru->proc.frame_rx,ru->proc.subframe_rx);
PHY_VARS_eNB *eNB=eNB_list[0];
PHY_VARS_eNB *eNB_nbiot=eNB_nbiot_list[0];
L1_proc_t *proc = &eNB->proc;
L1_nbiot_proc_t *proc_nbiot = &eNB_nbiot->proc;
struct timespec t;
LOG_D(PHY,"wakeup_L1s (num %d) for RU %d ru->eNB_top:%p\n",ru->num_eNB,ru->idx, ru->eNB_top);
......@@ -1178,6 +1181,8 @@ void wakeup_L1s(RU_t *ru) {
}
}
}
// call NB-IOT RX/TX entry-point from ru_thread directly
if (ru->eNB_nb_iot_top != 0) ru->eNB_nb_iot_top(eNB_nb_iot_list[0],proc->frame_rx,proc->subframe_rx,string,ru);
}
/*
AssertFatal(0==pthread_mutex_lock(&ruproc->mutex_eNBs),"");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment