From c6e94aa6be0239c31842cb1973c43f8a1beadf97 Mon Sep 17 00:00:00 2001 From: Ollrogge Date: Tue, 26 Oct 2021 14:35:33 +0200 Subject: [PATCH] periph/flashpage.h: add comment about riotboot impact on flashpage layout --- drivers/include/periph/flashpage.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/include/periph/flashpage.h b/drivers/include/periph/flashpage.h index ce78273f03..2ae1a62eec 100644 --- a/drivers/include/periph/flashpage.h +++ b/drivers/include/periph/flashpage.h @@ -213,11 +213,17 @@ void flashpage_erase(unsigned page); /** * @brief Get number of first free flashpage + * + * If riotboot is used in two slot mode, this number will change across + * firmware updates as the firmware slots alternate. */ unsigned flashpage_first_free(void); /** * @brief Get number of last free flashpage + * + * If riotboot is used in two slot mode, this number will change across + * firmware updates as the firmware slots alternate. */ unsigned flashpage_last_free(void);