Dynamic memory allocation

Learn MoreFAQsTutorials

2 posts / 0 new
Last post
Vishalkumar
Offline
Last seen:4 weeks 1 day ago
加入:2020-09-15 11:29
Dynamic memory allocation

Hi,

I want to use dynamic memory allocation for reading the ICM426 SPI ACCELAROMETER sensor data.

I coudn't find any functions for creating memory dynamically, can you please provide the data for creating memory dynamically.

Thanks and Regards,

Vishal kumar.

Device:
PM_Dialog
Offline
Last seen:50 min 34 sec ago
工作人员
加入:2018-02-08 11:03
Hi Vishalkumar,

Hi Vishalkumar,

For memory allocation you can use the OS_MALLOC_* and for memory de-allocation the OS_FREE_*. Please check the osal.h that provides wrappers of the FreeRTOS API for the following RTOS primitives.

Thanks, PM_Dialog