VSF Documented
portable.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2026 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18// Clean-room FreeRTOS portable.h shim for VSF.
19//
20// FreeRTOS applications use pvPortMalloc/vPortFree as a heap. We route them
21// to vsf_heap when available, otherwise to the C library malloc/free.
22
23#ifndef __VSF_FREERTOS_PORTABLE_H__
24#define __VSF_FREERTOS_PORTABLE_H__
25
26#include "portmacro.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32void *pvPortMalloc(size_t xSize);
33void vPortFree(void *pv);
34size_t xPortGetFreeHeapSize(void);
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif // __VSF_FREERTOS_PORTABLE_H__
size_t xPortGetFreeHeapSize(void)
Definition freertos_heap_port.c:66
void vPortFree(void *pv)
Definition freertos_heap_port.c:58
size_t xPortGetMinimumEverFreeHeapSize(void)
Definition freertos_heap_port.c:81
void * pvPortMalloc(size_t xSize)
Definition freertos_heap_port.c:53
Generated from commit: vsfteam/vsf@015f4d1