[riot-notifications] [RIOT-OS/RIOT] riotboot: add riotboot_flashwrite module (#11181)

Kaspar Schleiser notifications at github.com
Thu Mar 14 23:00:03 CET 2019


kaspar030 commented on this pull request.



> +#include "periph/flashpage.h"
+
+/**
+ * @brief   firmware update state structure
+ */
+typedef struct {
+    int target_slot;                        /**< update targets this slot     */
+    size_t offset;                          /**< update is at this position   */
+    unsigned flashpage;                     /**< update is at this flashpage  */
+    uint8_t flashpage_buf[FLASHPAGE_SIZE];  /**< flash writing buffer         */
+} riotboot_flashwrite_t;
+
+/**
+ * @brief Amount of bytes to skip at initial write of first page
+ */
+#define RIOTBOOT_FLASHWRITE_SKIPLEN 4

ok

-- 
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/11181#discussion_r265782962
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190314/03308f88/attachment.html>


More information about the notifications mailing list