@@ -23,6 +23,7 @@ extern "C" {
23
23
#endif // __cplusplus
24
24
25
25
#include "storage_abstraction/Driver_Storage.h"
26
+ #include "mbed_toolchain.h" /* required for MBED_DEPRECATED_SINCE */
26
27
27
28
/**
28
29
* General return codes. All Flash-Journal APIs return an int32_t to allow for
@@ -288,6 +289,8 @@ typedef struct FlashJournal_t {
288
289
* }
289
290
* \endcode
290
291
*/
292
+ MBED_DEPRECATED_SINCE ("mbed-os-5.5" , "FlashJournal is deprecated. "
293
+ "Use a BlockDevice or filesystem instead" )
291
294
static inline int32_t FlashJournal_initialize (FlashJournal_t * journal ,
292
295
ARM_DRIVER_STORAGE * mtd ,
293
296
const FlashJournal_Ops_t * ops ,
@@ -332,6 +335,8 @@ static inline int32_t FlashJournal_initialize(FlashJournal_t *journal,
332
335
* }
333
336
* \endcode
334
337
*/
338
+ MBED_DEPRECATED_SINCE ("mbed-os-5.5" , "FlashJournal is deprecated. "
339
+ "Use a BlockDevice or filesystem instead" )
335
340
static inline FlashJournal_Status_t FlashJournal_getInfo (FlashJournal_t * journal , FlashJournal_Info_t * info )
336
341
{
337
342
return journal -> ops .getInfo (journal , info );
@@ -411,6 +416,8 @@ static inline FlashJournal_Status_t FlashJournal_getInfo(FlashJournal_t *journal
411
416
* }
412
417
* \endcode
413
418
*/
419
+ MBED_DEPRECATED_SINCE ("mbed-os-5.5" , "FlashJournal is deprecated. "
420
+ "Use a BlockDevice or filesystem instead" )
414
421
static inline int32_t FlashJournal_read (FlashJournal_t * journal , void * blob , size_t n )
415
422
{
416
423
return journal -> ops .read (journal , blob , n );
@@ -493,6 +500,8 @@ static inline int32_t FlashJournal_read(FlashJournal_t *journal, void *blob, siz
493
500
* }
494
501
* \endcode
495
502
*/
503
+ MBED_DEPRECATED_SINCE ("mbed-os-5.5" , "FlashJournal is deprecated. "
504
+ "Use a BlockDevice or filesystem instead" )
496
505
static inline int32_t FlashJournal_readFrom (struct FlashJournal_t * journal , size_t offset , void * blob , size_t n )
497
506
{
498
507
return journal -> ops .readFrom (journal , offset , blob , n );
@@ -605,6 +614,8 @@ static inline int32_t FlashJournal_readFrom(struct FlashJournal_t *journal, size
605
614
* }
606
615
* \endcode
607
616
*/
617
+ MBED_DEPRECATED_SINCE ("mbed-os-5.5" , "FlashJournal is deprecated. "
618
+ "Use a BlockDevice or filesystem instead" )
608
619
static inline int32_t FlashJournal_log (FlashJournal_t * journal , const void * blob , size_t n )
609
620
{
610
621
return journal -> ops .log (journal , blob , n );
@@ -669,6 +680,8 @@ static inline int32_t FlashJournal_log(FlashJournal_t *journal, const void *blob
669
680
* by an operation other than a commit, that operation will very likely
670
681
* return an error code.
671
682
*/
683
+ MBED_DEPRECATED_SINCE ("mbed-os-5.5" , "FlashJournal is deprecated. "
684
+ "Use a BlockDevice or filesystem instead" )
672
685
static inline int32_t FlashJournal_commit (FlashJournal_t * journal )
673
686
{
674
687
return journal -> ops .commit (journal );
@@ -728,6 +741,8 @@ static inline int32_t FlashJournal_commit(FlashJournal_t *journal)
728
741
* }
729
742
* \endcode
730
743
*/
744
+ MBED_DEPRECATED_SINCE ("mbed-os-5.5" , "FlashJournal is deprecated. "
745
+ "Use a BlockDevice or filesystem instead" )
731
746
static inline int32_t FlashJournal_reset (FlashJournal_t * journal )
732
747
{
733
748
return journal -> ops .reset (journal );
0 commit comments