zephyrproject-rtos / gsoc-2022-arduino-core

Arduino Core Zephyr Module (GSoC 2022 Project)
Apache License 2.0
43 stars 11 forks source link

Implementing EEPROM library #88

Open soburi opened 9 months ago

soburi commented 9 months ago

We must implement the EEPROM library to keep it compatible with standard AVR Arduino. Where the EEPROM library implementation does not even have actual EEPROM, it should work with various non-volatile memory such as flash to keep compatibility.

DhruvaG2000 commented 9 months ago

@soburi Do you syggest using something like https://docs.zephyrproject.org/latest/services/storage/nvs/nvs.html underneath?

So basically a wrapper of all funcs here for nvs_write, nvs_read, etc. in zephyr?

soburi commented 9 months ago

So basically a wrapper of all funcs here for nvs_write, nvs_read, etc. in zephyr?

Yes, it is. The importance is easily migrating from Arduino code here. In practice, some ArduinoCore implements the EEPROM function using flash memory.