microSD Card control function for DISCO-F769NI based on BD_SD_DISCO_F746NG library by Roy Krikke
Dependencies: BD_SD_DISCO_F769NI BSP_DISCO_F769NI
Fork of DISCO-F746NG_BLOCK_DEVICE_WITH_FAT_FILESYSTEM_ON_SDCARD by
Please refer following my Notebook page.
/users/kenjiArai/notebook/sd-card-control-new/#
Diff: check_revision.cpp
- Revision:
- 7:e7767b779c8c
- Child:
- 8:12621f1fcbbe
diff -r 3c8b8e3cc0f8 -r e7767b779c8c check_revision.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/check_revision.cpp Sat May 02 03:43:51 2020 +0000 @@ -0,0 +1,28 @@ +/* + * Check Mbed revision + * + * Copyright (c) 2019,'20 Kenji Arai / JH1PJL + * http://www7b.biglobe.ne.jp/~kenjia/ + * https://os.mbed.com/users/kenjiArai/ + * Created: July 17th, 2019 + * Revised: May 2nd, 2020 + */ + +#include "mbed.h" + +// RUN ONLY ON mbed-os-5.15.3 +// https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-5.15.3 +#if (MBED_MAJOR_VERSION == 5) &&\ + (MBED_MINOR_VERSION == 15) &&\ + (MBED_PATCH_VERSION == 3) +#else + //#warning "Please use mbed-os-5.15.3" + #error "Please use mbed-os-5.15.3" +#endif + +void print_revision(void) +{ + printf("MBED_MAJOR_VERSION = %d, ", MBED_MAJOR_VERSION); + printf("MINOR = %d, ", MBED_MINOR_VERSION); + printf("PATCH = %d\r\n", MBED_PATCH_VERSION); +}