SD-Card Control Program / Using Micro-SD / based on SDCardTest Program (http://mbed.org/users/simon/programs/SDCardTest/gpdz4x/)
Dependencies: mbed SDFileSystem
Please refer following my Notebook page.
/users/kenjiArai/notebook/sd-card-control-new/#
check_revision.cpp@7:4467fbfa888b, 2020-05-02 (annotated)
- Committer:
- kenjiArai
- Date:
- Sat May 02 03:45:17 2020 +0000
- Revision:
- 7:4467fbfa888b
- Parent:
- 4:fc36c8ec2966
changed starting process(wait key input)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 4:fc36c8ec2966 | 1 | /* |
kenjiArai | 4:fc36c8ec2966 | 2 | * Check Mbed revision |
kenjiArai | 4:fc36c8ec2966 | 3 | * |
kenjiArai | 7:4467fbfa888b | 4 | * Copyright (c) 2019,'20 Kenji Arai / JH1PJL |
kenjiArai | 7:4467fbfa888b | 5 | * http://www7b.biglobe.ne.jp/~kenjia/ |
kenjiArai | 4:fc36c8ec2966 | 6 | * https://os.mbed.com/users/kenjiArai/ |
kenjiArai | 4:fc36c8ec2966 | 7 | * Created: July 17th, 2019 |
kenjiArai | 7:4467fbfa888b | 8 | * Revised: May 2nd, 2020 |
kenjiArai | 4:fc36c8ec2966 | 9 | */ |
kenjiArai | 4:fc36c8ec2966 | 10 | |
kenjiArai | 4:fc36c8ec2966 | 11 | #include "mbed.h" |
kenjiArai | 7:4467fbfa888b | 12 | |
kenjiArai | 7:4467fbfa888b | 13 | // RUN ONLY ON mbed-os-5.15.3 |
kenjiArai | 7:4467fbfa888b | 14 | // https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-5.15.3 |
kenjiArai | 7:4467fbfa888b | 15 | #if (MBED_MAJOR_VERSION == 5) &&\ |
kenjiArai | 7:4467fbfa888b | 16 | (MBED_MINOR_VERSION == 15) &&\ |
kenjiArai | 7:4467fbfa888b | 17 | (MBED_PATCH_VERSION == 3) |
kenjiArai | 7:4467fbfa888b | 18 | #elif (MBED_MAJOR_VERSION == 2) &&\ |
kenjiArai | 4:fc36c8ec2966 | 19 | (MBED_MINOR_VERSION == 0) &&\ |
kenjiArai | 4:fc36c8ec2966 | 20 | (MBED_PATCH_VERSION == 165) |
kenjiArai | 4:fc36c8ec2966 | 21 | #else |
kenjiArai | 7:4467fbfa888b | 22 | //#warning "Please use mbed-os-5.15.3 or mbed 2.0.165" |
kenjiArai | 7:4467fbfa888b | 23 | #error "Please use mbed-os-5.15.3 or mbed 2.0.165" |
kenjiArai | 7:4467fbfa888b | 24 | #endif |
kenjiArai | 7:4467fbfa888b | 25 | |
kenjiArai | 7:4467fbfa888b | 26 | void print_revision(void) |
kenjiArai | 7:4467fbfa888b | 27 | { |
kenjiArai | 7:4467fbfa888b | 28 | printf("MBED_MAJOR_VERSION = %d, ", MBED_MAJOR_VERSION); |
kenjiArai | 7:4467fbfa888b | 29 | printf("MINOR = %d, ", MBED_MINOR_VERSION); |
kenjiArai | 7:4467fbfa888b | 30 | printf("PATCH = %d\r\n", MBED_PATCH_VERSION); |
kenjiArai | 7:4467fbfa888b | 31 | } |