/* * 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 * * @} */ #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); }