feat: added PicoW_Sensor code template

Credits to @ext-erich.styger that provided the template
This commit is contained in:
SylvanArnold
2025-04-22 11:30:45 +02:00
committed by Sylvan Arnold
parent b2e9eab44e
commit 6cd510e749
985 changed files with 606823 additions and 0 deletions

View 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_ */