1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-20 03:53:49 +01:00
RIOT/pkg/xipfs/fs/xipfs_flashpage.c
2025-07-23 12:44:38 +02:00

42 lines
772 B
C

/*
* Copyright (C) 2024 Université de Lille
*
* 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.
*/
/**
* @ingroup sys_fs_xipfs
* @{
*
* @file
* @brief xipfs integration with flashpage
*
* @author Damien Amara <damien.amara@univ-lille.fr>
*
* @}
*/
#include "periph/flashpage.h"
void *xipfs_nvm_addr(unsigned page)
{
return flashpage_addr(page);
}
void xipfs_nvm_erase(unsigned page)
{
flashpage_erase(page);
}
unsigned xipfs_nvm_page(const void *addr)
{
return flashpage_page(addr);
}
void xipfs_nvm_write(void *target_addr, const void *data, size_t len)
{
flashpage_write(target_addr, data, len);
}