feat: added PicoW_Sensor code template
Credits to @ext-erich.styger that provided the template
This commit is contained in:
committed by
Sylvan Arnold
parent
b2e9eab44e
commit
6cd510e749
27
TSM_PicoW_Sensor/McuLib/littleFS/McuLittleFSBlockDevice.h
Normal file
27
TSM_PicoW_Sensor/McuLib/littleFS/McuLittleFSBlockDevice.h
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2022, Erich Styger
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
|
||||
#ifndef MCULITTLEFSBLOCKDEVICE_H_
|
||||
#define MCULITTLEFSBLOCKDEVICE_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include "littleFS/lfs.h"
|
||||
#include "littleFS/McuLittleFSBlockDeviceconfig.h"
|
||||
|
||||
int McuLittleFS_block_device_read(const struct lfs_config *c, lfs_block_t block, lfs_off_t off, void *buffer, lfs_size_t size);
|
||||
|
||||
int McuLittleFS_block_device_prog(const struct lfs_config *c, lfs_block_t block, lfs_off_t off, const void *buffer, lfs_size_t size);
|
||||
|
||||
int McuLittleFS_block_device_erase(const struct lfs_config *c, lfs_block_t block);
|
||||
|
||||
int McuLittleFS_block_device_sync(const struct lfs_config *c);
|
||||
|
||||
int McuLittleFS_block_device_deinit(void);
|
||||
|
||||
int McuLittleFS_block_device_init(void);
|
||||
|
||||
#endif /* MCULITTLEFSBLOCKDEVICE_H_ */
|
||||
Reference in New Issue
Block a user