eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
sysmem.h File Reference

System memory management. More...

#include "services/systp.h"
#include "services/systypes.h"
+ Include dependency graph for sysmem.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void * SysAlloc (size_t nSize)
 
void SysFree (void *pvData)
 

Detailed Description

System memory management.

Author
STMicroelectronics - ST-Korea - MCD Team
Version
1.0.0
Date
Nov 11, 2020

This file declares API function to alloc and release block of memory. The application can use its own memory allocation strategy.

Attention

Copyright (c) 2020 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Function Documentation

◆ SysAlloc()

void * SysAlloc ( size_t  nSize)

Allocate a block of memory of a specific size.

Parameters
nSize[IN] specifies the size in byte of the requested memory.
Returns
a pointer to the allocated memory if success, NULL otherwise.

◆ SysFree()

void SysFree ( void *  pvData)

Release a block of memory.

Parameters
pvData[IN] specifies the start of teh block of memory to release.