From fad86f9a053e980fe70a0db541d6f6787ba77342 Mon Sep 17 00:00:00 2001 From: Yossi Levy Date: Tue, 28 Aug 2018 15:36:23 +0300 Subject: [PATCH 1/3] Adding deprecation warning for mbed-os 5.10 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 2a05221..5abaa55 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +# Warning +Starting from mbed-os 5.10 this repository is deprecated. +Please refer to mbed-os 5.10 documentation for more detail on how to enable DATAFLASH support. + # DataFlash Driver Block device driver for I2C based EEPROM devices such as the Adesto AT45DB From a6ad3eecded6cf99e4b3925de84334412975fac3 Mon Sep 17 00:00:00 2001 From: Yossi Levy Date: Thu, 20 Sep 2018 15:07:50 +0300 Subject: [PATCH 2/3] Updating deprication message to have links to new code and documents. disabling build after 5.10 --- DataFlashBlockDevice.cpp | 6 ++++++ README.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/DataFlashBlockDevice.cpp b/DataFlashBlockDevice.cpp index 3661b78..2c411ef 100644 --- a/DataFlashBlockDevice.cpp +++ b/DataFlashBlockDevice.cpp @@ -19,6 +19,12 @@ #include +/* Started from version 5.10.0 DataFlashBlockDevice external repo is depricated. + 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 depricated. please use the DataFlashBlockDevice component inside mbed-os." +#endif + /* constants */ #define DATAFLASH_READ_SIZE 1 #define DATAFLASH_PROG_SIZE 1 diff --git a/README.md b/README.md index 5abaa55..94aca9a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Warning Starting from mbed-os 5.10 this repository is deprecated. -Please refer to mbed-os 5.10 documentation for more detail on how to enable DATAFLASH support. +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 From ac6649d927dcc84b8421f214ee6a38ebf7538e3f Mon Sep 17 00:00:00 2001 From: Yossi Levy Date: Tue, 25 Sep 2018 14:47:23 +0300 Subject: [PATCH 3/3] Correcting spelling --- DataFlashBlockDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataFlashBlockDevice.cpp b/DataFlashBlockDevice.cpp index 2c411ef..0376150 100644 --- a/DataFlashBlockDevice.cpp +++ b/DataFlashBlockDevice.cpp @@ -19,10 +19,10 @@ #include -/* Started from version 5.10.0 DataFlashBlockDevice external repo is depricated. +/* 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 depricated. please use the DataFlashBlockDevice component inside mbed-os." +#error "Started from version 5.10.0 DataFlashBlockDevice external repo is deprecated. please use the DataFlashBlockDevice component inside mbed-os." #endif /* constants */