[riot-notifications] [RIOT-OS/RIOT] [WIP, RFC] drivers/eeprom: Common API to access EEPROM memory (#12091)

Marian Buschsieweke notifications at github.com
Tue Sep 10 09:25:15 CEST 2019


maribu commented on this pull request.



> +    int (*write)(void *handle, eeprom_off_t pos, const void *data, size_t len);
+    /**
+     * @brief   Erase the whole EEPROM
+     *
+     * @param[in,out]   handle  Device handle of the EEPROM to erase
+     *
+     * @retval  0       Success
+     * @retval  -EIO    I/O error occurred during erase
+     *
+     * If `0` is returned a subsequent read for any valid address must return
+     * @ref eeprom_driver_t::clear_byte. If `-EIO` is returned, the whole
+     * content of the EEPROM is undefined.
+     *
+     * This function is optional to implement by the driver. If the function
+     * pointer is `NULL`, a fallback implementation that calls
+     * @ref eeprom_driver_t::set is used instead.

Fixed :-)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12091#discussion_r322588419
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190910/08a7d45f/attachment-0001.htm>


More information about the notifications mailing list