1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-18 19:13:51 +01:00
RIOT/sys/include/fs/lwext4_fs.h
Marian Buschsieweke cac44edec7
tree-wide: replace multiple empty lines with one
For each C source/header `$file`: `sed -e '/^$/N;/^\n$/D' -i $file`.
2025-05-21 22:51:04 +02:00

57 lines
1.1 KiB
C

/*
* Copyright (C) 2022 ML!PA Consulting GmbH
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
#pragma once
/**
* @defgroup sys_lwext4 lwEXT4 integration
* @ingroup pkg_lwext4
* @brief RIOT integration of lwEXT4
*
* @{
*
* @file
* @brief lwext4 integration with vfs
*
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
*/
#include <stdalign.h>
#include "vfs.h"
#include "mtd.h"
#include "mutex.h"
#include "ext4.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief lwext4 descriptor for vfs integration
*/
typedef struct {
struct ext4_mountpoint mp; /**< lwext4 mountpoint struct */
struct ext4_blockdev bdev; /**< lwext4 block device struct */
struct ext4_blockdev_iface iface; /**< lwext4 block device interface */
mtd_dev_t *dev; /**< mtd device to use */
mutex_t lock; /**< mutex */
} lwext4_desc_t;
/**
* @brief The littlefs vfs driver
*/
extern const vfs_file_system_t lwext4_file_system;
#ifdef __cplusplus
}
#endif
/** @} */