libmetal
lib
system
freertos
alloc.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved.
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
7
/*
8
* @file freertos/alloc.c
9
* @brief FreeRTOS libmetal memory allocattion definitions.
10
*/
11
12
#ifndef __METAL_ALLOC__H__
13
#error "Include metal/alloc.h instead of metal/freertos/alloc.h"
14
#endif
15
16
#ifndef __METAL_FREERTOS_ALLOC__H__
17
#define __METAL_FREERTOS_ALLOC__H__
18
19
#include "FreeRTOS.h"
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
static
inline
void
*
metal_allocate_memory
(
unsigned
int
size)
26
{
27
return
pvPortMalloc(size);
28
}
29
30
static
inline
void
metal_free_memory
(
void
*ptr)
31
{
32
vPortFree(ptr);
33
}
34
35
#ifdef __cplusplus
36
}
37
#endif
38
39
#endif
/* __METAL_FREERTOS_ALLOC__H__ */
metal_free_memory
static void metal_free_memory(void *ptr)
Definition:
alloc.h:30
metal_allocate_memory
static void * metal_allocate_memory(unsigned int size)
Definition:
alloc.h:25
Generated on Sat Aug 1 2020 00:00:00 for libmetal by
1.8.18