Skip to content

Commit

Permalink
drivers/flashpage: Use in-code deprecation annotation
Browse files Browse the repository at this point in the history
Contributes-To: RIOT-OS#18561
  • Loading branch information
chrysn committed Sep 6, 2022
1 parent 2ecf499 commit 5034614
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/include/periph/flashpage.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,24 +238,20 @@ 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.
*/
DEPRECATED("Use FLASH_WRITABLE_INIT instead, which is usable in modules as well as applications. The function will be removed after the 2022.04 release.")
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.
*/
DEPRECATED("Use FLASH_WRITABLE_INIT instead, which is usable in modules as well as applications. The function will be removed after the 2022.04 release.")
unsigned flashpage_last_free(void);

/**
Expand Down

0 comments on commit 5034614

Please sign in to comment.