Using TAPA Task to generated PHY Stub's slot indication [Issue-Id: ODUHIGH-348]
[o-du/l2.git] / src / du_app / du_utils.h
index 7146dc3..c3cf3e7 100644 (file)
@@ -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
 
 /* 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)                     \
    _pst.intfVer = 0;                                        \
 }
 
+
+void fillStartSymbolAndLen(uint8_t numRsrcAlloc, PdschConfig *pdschCfg, PuschCfg *puschCfg);
 /**********************************************************************
          End of file
 **********************************************************************/