Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions DataFlashBlockDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@

#include <inttypes.h>

/* Started from version 5.10.0 DataFlashBlockDevice external repo is deprecated.
please use the DataFlashBlockDevice component inside mbed-os.*/
#if defined(MBED_MAJOR_VERSION) && MBED_MAJOR_VERSION >= 5 && (MBED_VERSION >= MBED_ENCODE_VERSION(5,10,0))
#error "Started from version 5.10.0 DataFlashBlockDevice external repo is deprecated. please use the DataFlashBlockDevice component inside mbed-os."
#endif

/* constants */
#define DATAFLASH_READ_SIZE 1
#define DATAFLASH_PROG_SIZE 1
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Warning
Starting from mbed-os 5.10 this repository is deprecated.
Please refer to mbed-os 5.10 [documentation](https://github.com/ARMmbed/mbed-os-5-docs/blob/development/docs/api/storage/DataFlashBlockDevice.md) and [code](https://github.com/ARMmbed/mbed-os/tree/master/components/storage/blockdevice/COMPONENT_DATAFLASH) for more detail on how to enable DATAFLASH support.

# DataFlash Driver

Block device driver for I2C based EEPROM devices such as the Adesto AT45DB
Expand Down