X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_utils.h;h=c3cf3e7ee8333da763e66e4a9a8e07aad6571894;hb=cbb5d8d83a41cbf191347d447a66c9cd062d4d81;hp=7146dc3c29661dff43e015750dbd52c9705e4d89;hpb=694adde1a08c393a8443fd5bbd4f036f5cf85403;p=o-du%2Fl2.git diff --git a/src/du_app/du_utils.h b/src/du_app/du_utils.h index 7146dc3c2..c3cf3e7ee 100644 --- a/src/du_app/du_utils.h +++ b/src/du_app/du_utils.h @@ -27,6 +27,7 @@ #define DU_POOL 1 #define RLC_POOL 1 #define MAC_POOL 1 +#define MAX_SLIV_CONFIG_IDX 105 /* Events */ #define EVTCFG 0 @@ -55,10 +56,14 @@ /* free a static buffer */ #define DU_FREE(_datPtr, _size) \ - if(_datPtr) \ +{ \ + if(_datPtr != NULLP) \ + { \ SPutSBuf(DU_APP_MEM_REGION, DU_POOL, \ - (Data *)_datPtr, _size); - + (Data *)_datPtr, _size); \ + _datPtr = NULLP; \ + } \ +} /* Allocate shared memory to be used for LWLC * during inter-layer communication */ #define DU_ALLOC_SHRABL_BUF(_buf, _size) \ @@ -121,6 +126,8 @@ _pst.intfVer = 0; \ } + +void fillStartSymbolAndLen(uint8_t numRsrcAlloc, PdschConfig *pdschCfg, PuschCfg *puschCfg); /********************************************************************** End of file **********************************************************************/