Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

periph/flashpage: deprecate *_free functions #17860

Merged
merged 2 commits into from
Mar 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion drivers/include/periph/flashpage.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ enum {
#error "periph/flashpage: FLASHPAGE_NUMOF not defined"
#endif

#ifdef MODULE_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE
#if defined(MODULE_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE) || defined(DOXYGEN)
/**
* @def FLASH_WRITABLE_INIT(name, size)
* @brief Define an array in flash memory
Expand Down Expand Up @@ -238,6 +238,9 @@ void flashpage_erase(unsigned page);

/**
* @brief Get number of first free flashpage
* @deprecated Use @ref FLASH_WRITABLE_INIT instead, which is usable in modules
* as well as applications. The function will be removed after
* the 2022.04 release.
*
* If riotboot is used in two slot mode, this number will change across
* firmware updates as the firmware slots alternate.
Expand All @@ -246,6 +249,9 @@ unsigned flashpage_first_free(void);

/**
* @brief Get number of last free flashpage
* @deprecated Use @ref FLASH_WRITABLE_INIT instead, which is usable in modules
* as well as applications. The function will be removed after
* the 2022.04 release.
*
* If riotboot is used in two slot mode, this number will change across
* firmware updates as the firmware slots alternate.
Expand Down