Commit b1adf9da authored by Ting-An Lin's avatar Ting-An Lin

fix PHY warnings

parent 232d51d8
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#endif #endif
#include "PHY/defs_common.h" #include "PHY/defs_common.h"
#include "PHY/impl_defs_lte_NB_IoT.h" #include "PHY/impl_defs_lte_NB_IoT.h"
#include "defs_NB_IoT.h"
//#include "PHY/LTE_TRANSPORT/proto_NB_IoT.h" //#include "PHY/LTE_TRANSPORT/proto_NB_IoT.h"
//#include "PHY/CODING/defs_NB_IoT.h" //#include "PHY/CODING/defs_NB_IoT.h"
#include "PHY/defs_L1_NB_IoT.h" // /LTE_TRANSPORT/defs_NB_IoT.h #include "PHY/defs_L1_NB_IoT.h" // /LTE_TRANSPORT/defs_NB_IoT.h
...@@ -338,7 +339,7 @@ int dci_modulation_NB_IoT(int32_t **txdataF, ...@@ -338,7 +339,7 @@ int dci_modulation_NB_IoT(int32_t **txdataF,
txdataF, txdataF,
&jj, &jj,
symbol_offset, symbol_offset,
&dlcch->npdcch_e[0], &dlcch->npdcch_e[0][MAX_BITS_IN_SF],
pilots, pilots,
pilot_shift, pilot_shift,
amp, amp,
...@@ -351,7 +352,7 @@ int dci_modulation_NB_IoT(int32_t **txdataF, ...@@ -351,7 +352,7 @@ int dci_modulation_NB_IoT(int32_t **txdataF,
txdataF, txdataF,
&jj, &jj,
symbol_offset, symbol_offset,
&dlcch->npdcch_e[ncce_index], &dlcch->npdcch_e[ncce_index][MAX_BITS_IN_SF],
pilots, pilots,
pilot_shift, pilot_shift,
amp, amp,
...@@ -383,9 +384,9 @@ uint8_t generate_dci_top_NB_IoT(NB_IoT_eNB_NPDCCH_t *npdcch, ...@@ -383,9 +384,9 @@ uint8_t generate_dci_top_NB_IoT(NB_IoT_eNB_NPDCCH_t *npdcch,
{ {
int i, G; int i=2, G=0;
//temporary variable //temporary variable
uint16_t rnti[2]; uint16_t rnti[i];
uint8_t L = 0; uint8_t L = 0;
...@@ -415,8 +416,8 @@ uint8_t generate_dci_top_NB_IoT(NB_IoT_eNB_NPDCCH_t *npdcch, ...@@ -415,8 +416,8 @@ uint8_t generate_dci_top_NB_IoT(NB_IoT_eNB_NPDCCH_t *npdcch,
//First take all the DCI pdu and their corrispondent rnti //First take all the DCI pdu and their corrispondent rnti
for(i = 0; i<Num_dci;i++) for(i = 0; i<Num_dci;i++)
{ {
npdcch->pdu[i][0]=dci_alloc[i].dci_pdu; npdcch->pdu[i]= (uint8_t*)dci_alloc[i].dci_pdu;
rnti[i]=dci_alloc[i].rnti; rnti[i]= dci_alloc[i].rnti;
L = dci_alloc[i].L; L = dci_alloc[i].L;
} }
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "extern_NB_IoT.h" #include "extern_NB_IoT.h"
#include "PHY/CODING/lte_interleaver2.h" #include "PHY/CODING/lte_interleaver2.h"
#include "PHY/CODING/coding_extern.h" #include "PHY/CODING/coding_extern.h"
#include "PHY/LTE_REFSIG/lte_refsig.h"
//#define DEBUG_ULSCH //#define DEBUG_ULSCH
//#include "PHY/sse_intrin.h" //#include "PHY/sse_intrin.h"
#include "PHY/NBIoT_ESTIMATION/defs_NB_IoT.h" #include "PHY/NBIoT_ESTIMATION/defs_NB_IoT.h"
...@@ -1658,7 +1659,7 @@ uint32_t turbo_decoding_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB, ...@@ -1658,7 +1659,7 @@ uint32_t turbo_decoding_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB,
printf(" MSG3 NOT OK"); printf(" MSG3 NOT OK");
} }
} //////////// r loop end //////////// } //////////// r loop end ////////////
return 0;
} }
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
......
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