X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fhi_lib%2Fapp%2Fsrc%2Fcommon.c;fp=fhi_lib%2Fapp%2Fsrc%2Fcommon.c;h=e3135c74773271893a22ac02e0a5100bdc3a0766;hp=f165ef45f1bee803f6df1a855f198718d1e7e4fd;hb=892daba4c616407f16506415d5a69549519ef11d;hpb=76b4495d593ccf45d712db1a3ec96fa9d2d8f5f5 diff --git a/fhi_lib/app/src/common.c b/fhi_lib/app/src/common.c index f165ef4..e3135c7 100644 --- a/fhi_lib/app/src/common.c +++ b/fhi_lib/app/src/common.c @@ -95,12 +95,7 @@ int16_t nCpSizeF2[2][4][2] = {{68, 36}, {136, 72}, {272, 144}, {544, 288}}, // Numerology 3 (120KHz) }; -uint32_t gMaxSlotNum; -uint32_t gNumDLCtx; -uint32_t gNumULCtx; -uint32_t gDLResetAdvance; -uint32_t gDLProcAdvance; -uint32_t gULProcAdvance; +uint32_t gLocMaxSlotNum; static uint16_t g_NumSlotTDDLoop[XRAN_MAX_SECTOR_NR] = { XRAN_NUM_OF_SLOT_IN_TDD_LOOP }; static uint16_t g_NumDLSymSp[XRAN_MAX_SECTOR_NR][XRAN_NUM_OF_SLOT_IN_TDD_LOOP] = {0}; @@ -339,11 +334,11 @@ uint32_t app_xran_cal_nrarfcn(uint32_t nCenterFreq) int32_t app_xran_slot_limit(int32_t nSfIdx) { while (nSfIdx < 0) { - nSfIdx += gMaxSlotNum; + nSfIdx += gLocMaxSlotNum; } - while (nSfIdx >= gMaxSlotNum) { - nSfIdx -= gMaxSlotNum; + while (nSfIdx >= gLocMaxSlotNum) { + nSfIdx -= gLocMaxSlotNum; } return nSfIdx;