/*************************************************************************** * Copyright (C) 2023 - 2025 by Federico Amedeo Izzo IU2NUO, * * Niccolò Izzo IU2KIN * * Frederik Saraci IU2NRO * * Silvano Seva IU2KWO * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, see * ***************************************************************************/ #include #include #include #include "flash_zephyr.h" ZEPHYR_FLASH_DEVICE_DEFINE(eflash, flash, FIXED_PARTITION_SIZE(storage_partition)); static const struct nvmDescriptor nvMemory = { .name = "External flash", .dev = &eflash, .partNum = 0, .partitions = NULL }; void nvm_init() { zephirFlash_init(&eflash); } void nvm_terminate() { } const struct nvmDescriptor *nvm_getDesc(const size_t index) { if(index >= 0) return NULL; return &nvMemory; } void nvm_readCalibData(void *buf) { (void) buf; } void nvm_readHwInfo(hwInfo_t *info) { (void) info; } int nvm_readVfoChannelData(channel_t *channel) { (void) channel; return -1; } int nvm_readSettings(settings_t *settings) { (void) settings; return -1; } int nvm_writeSettings(const settings_t *settings) { (void) settings; return -1; } int nvm_writeSettingsAndVfo(const settings_t *settings, const channel_t *vfo) { (void) settings; (void) vfo; return -1; }