Commit 27366f6f authored by Raymond Knopp's avatar Raymond Knopp

removal of warnings

parent 6f90f6b0
......@@ -78,17 +78,16 @@ void memcpy_finder(uint32_t* p_lut_cn2bn,uint32_t **p_lut2,uint32_t *size_lut2,i
}
}
void nrLDPC_prep_bn2cnProcBuf(uint32_t* lut_cn2bnProcBuf,
void nrLDPC_prep_bn2cnProcBuf(const uint32_t* lut_cn2bnProcBuf,
uint32_t** lut_cn2bnProcBuf2,
uint32_t *lut2_size,
uint8_t* lut_numCnInCnGroups,
uint32_t* lut_startAddrCnGroups,
const uint8_t* lut_numCnInCnGroups,
const uint32_t* lut_startAddrCnGroups,
uint16_t Z)
{
uint32_t* p_lut_cn2bn,*p_lut2;
uint32_t* p_lut_cn2bn;
uint32_t bitOffsetInGroup;
uint32_t i;
uint32_t j;
uint32_t M;
......@@ -100,7 +99,7 @@ void nrLDPC_prep_bn2cnProcBuf(uint32_t* lut_cn2bnProcBuf,
// =====================================================================
// CN group with 3 BNs
p_lut_cn2bn = &lut_cn2bnProcBuf[0];
p_lut_cn2bn = (uint32_t*)&lut_cn2bnProcBuf[0];
M = lut_numCnInCnGroups[0]*Z;
bitOffsetInGroup = lut_numCnInCnGroups_BG1_R13[0]*NR_LDPC_ZMAX;
......@@ -220,7 +219,7 @@ void nrLDPC_prep_bn2cnProcBuf(uint32_t* lut_cn2bnProcBuf,
}
void nrLDPC_prep() {
void nrLDPC_prep(void) {
nrLDPC_prep_bn2cnProcBuf(lut_cn2bnProcBuf_BG1_Z320_R13,
&lut_cn2bnProcBuf2_BG1_Z320_R13,
&lut_cn2bnProcBuf2_BG1_Z320_R13_size,
......
......@@ -34,6 +34,8 @@
#include "nrLDPC_types.h"
#include "nrLDPC_init_mem.h"
void nrLDPC_prep(void);
/**
\brief LDPC decoder
\param p_decParams LDPC decoder parameters
......@@ -41,6 +43,8 @@
\param p_llrOut Output vector
\param p_profiler LDPC profiler statistics
*/
int32_t nrLDPC_decoder(t_nrLDPC_dec_params* p_decParams, int8_t* p_llr, int8_t* p_llrOut, t_nrLDPC_procBuf* p_procBuf, t_nrLDPC_time_stats* p_profiler);
#endif
int32_t *lut_cn2bnProcBuf2_BG1_Z112_R13=NULL;
uint32_t *lut_cn2bnProcBuf2_BG1_Z112_R13=NULL;
uint32_t lut_cn2bnProcBuf2_BG1_Z112_R13_size=0;
......
......@@ -602,7 +602,6 @@ static inline void nrLDPC_bn2cnProcBuf_BG1(t_nrLDPC_lut* p_lut, t_nrLDPC_procBuf
int8_t* p_cnProcBuf;
uint32_t* p_lut_cn2bn;
uint32_t bitOffsetInGroup;
uint32_t i;
uint32_t j;
uint32_t M;
......@@ -612,7 +611,7 @@ static inline void nrLDPC_bn2cnProcBuf_BG1(t_nrLDPC_lut* p_lut, t_nrLDPC_procBuf
// =====================================================================
// CN group with 3 BNs
p_lut_cn2bn = &lut_cn2bnProcBuf[0];
p_lut_cn2bn = (uint32_t *)&lut_cn2bnProcBuf[0];
M = lut_numCnInCnGroups[0]*Z;
bitOffsetInGroup = lut_numCnInCnGroups_BG1_R13[0]*NR_LDPC_ZMAX;
......
......@@ -97,6 +97,7 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB,
while(gNB->configured == 0) usleep(10000);
init_dfts();
nrLDPC_prep();
/*
LOG_I(PHY,"[gNB %"PRIu8"] Initializing DL_FRAME_PARMS : N_RB_DL %"PRIu8", PHICH Resource %d, PHICH Duration %d nb_antennas_tx:%u nb_antennas_rx:%u PRACH[rootSequenceIndex:%u prach_Config_enabled:%u configIndex:%u highSpeed:%u zeroCorrelationZoneConfig:%u freqOffset:%u]\n",
gNB->Mod_id,
......
......@@ -1014,6 +1014,7 @@ void phy_init_nr_top(PHY_VARS_NR_UE *ue)
crcTableInit();
init_dfts();
nrLDPC_prep();
init_context_synchro_nr(frame_parms);
......
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