Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources

This commit is contained in:
2026-07-06 11:30:13 +08:00
commit e76462eeb7
3451 changed files with 1415300 additions and 0 deletions

42
sdk/lib/VFS/heap.h Normal file
View File

@@ -0,0 +1,42 @@
/*
* Copyright 2024, Hiroyuki OYAMA
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef HEAP_H
#define HEAP_H
/** \defgroup blockdevice_heap blockdevice_heap
* \ingroup blockdevice
* \brief Heap memory block device
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include "blockdevice.h"
/*! \brief Create RAM heap memory block device
* \ingroup blockdevice_heap
*
* Create a block device object that uses RAM heap memory. The size of heap memory allocated to the block device is specified by size.
*
* \param size Size in bytes to be allocated to the block device.
* \return Block device object. Returnes NULL in case of failure.
* \retval NULL Failed to create block device object.
*/
blockdevice_t *blockdevice_heap_create(uint8_t *heap_buf,size_t size);
/*! \brief Release the heap memory device.
* \ingroup blockdevice_heap
*
* \param device Block device object.
*/
void blockdevice_heap_free(blockdevice_t *device);
#ifdef __cplusplus
}
#endif
#endif