Skip to content

Commit 5221ce2

Browse files
authored
Merge pull request #17860 from Ollrogge/deprecate_flashpage
periph/flashpage: deprecate *_free functions
2 parents 3977ff6 + 4974790 commit 5221ce2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/include/periph/flashpage.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ enum {
151151
#error "periph/flashpage: FLASHPAGE_NUMOF not defined"
152152
#endif
153153

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

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

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

0 commit comments

Comments
 (0)