SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The SimpleLink host driver supports two memory models: static (default) and dynamic.
The major difference between these memory models is that the static model requires the memory allocation of the driver’s control block, even when the driver is not active, and the dynamic does not. In the dynamic model, the control block and all required resources are allocated on sl_Start and freed on sl_Stop.
To enable the dynamic model, the macro SL_MEMORY_MGMT_DYNAMIC must be defined. For example:
#define SL_MEMORY_MGMT_DYNAMIC
And a complementary malloc and free functions must also be defined:
void* sl_Malloc(int Size);
void sl_Free(void* pBuff);