Merge pull request #17061 from Ollrogge/flashpage_follow_up

periph/flashpage.h: add comment about riotboot impact on flashpage la…
This commit is contained in:
benpicco 2021-10-26 21:04:25 +02:00 committed by GitHub
commit 158bf0e449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);