diff --git a/FlashIAPBlockDevice.cpp b/FlashIAPBlockDevice.cpp index a79f57f..c946580 100644 --- a/FlashIAPBlockDevice.cpp +++ b/FlashIAPBlockDevice.cpp @@ -23,6 +23,12 @@ #include +/* Started from version 5.10.0 FlashIAPBlockDevice external repo is deprecated. + please use the FlashIAPBlockDevice 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 FlashIAPBlockDevice external repo is deprecated. please use the FlashIAPBlockDevice component inside mbed-os." +#endif + #define FLASHIAP_READ_SIZE 1 // Debug available diff --git a/README.md b/README.md index 54165e0..8747536 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](https://github.com/ARMmbed/mbed-os-5-docs/blob/development/docs/api/storage/FlashIAPBlockDevice.md) and [code](https://github.com/ARMmbed/mbed-os/tree/master/components/storage/blockdevice/COMPONENT_FLASHIAP) for more detail on how to enable FLASHIAP support. + # Block Device driver build on top of FlashIAP API ## Warning