Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of study_step0 by
check_revision.cpp@2:aa6fdecebf2b, 2020-04-06 (annotated)
- Committer:
- kenjiArai
- Date:
- Mon Apr 06 04:57:04 2020 +0000
- Revision:
- 2:aa6fdecebf2b
- Child:
- 4:0564f82dd0ef
Extended not only 3x4 but 4x4,4x5 and 5x5 keys
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| kenjiArai | 2:aa6fdecebf2b | 1 | /* |
| kenjiArai | 2:aa6fdecebf2b | 2 | * Check Mbed revision |
| kenjiArai | 2:aa6fdecebf2b | 3 | * |
| kenjiArai | 2:aa6fdecebf2b | 4 | * Copyright (c) 2020 Kenji Arai / JH1PJL |
| kenjiArai | 2:aa6fdecebf2b | 5 | * http://www7b.biglobe.ne.jp/~kenjia/ |
| kenjiArai | 2:aa6fdecebf2b | 6 | * https://os.mbed.com/users/kenjiArai/ |
| kenjiArai | 2:aa6fdecebf2b | 7 | * Revised: Feburary 16th, 2020 |
| kenjiArai | 2:aa6fdecebf2b | 8 | * Revised: April 6th, 2020 |
| kenjiArai | 2:aa6fdecebf2b | 9 | */ |
| kenjiArai | 2:aa6fdecebf2b | 10 | |
| kenjiArai | 2:aa6fdecebf2b | 11 | #include "mbed.h" |
| kenjiArai | 2:aa6fdecebf2b | 12 | |
| kenjiArai | 2:aa6fdecebf2b | 13 | // RUN on mbed-os-6.0.0-alpha-3 |
| kenjiArai | 2:aa6fdecebf2b | 14 | // https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-6.0.0-alpha-3 |
| kenjiArai | 2:aa6fdecebf2b | 15 | #if (MBED_MAJOR_VERSION == 5) &&\ |
| kenjiArai | 2:aa6fdecebf2b | 16 | (MBED_MINOR_VERSION == 15) &&\ |
| kenjiArai | 2:aa6fdecebf2b | 17 | (MBED_PATCH_VERSION == 1) |
| kenjiArai | 2:aa6fdecebf2b | 18 | // RUN on mbed 2.0.165 |
| kenjiArai | 2:aa6fdecebf2b | 19 | #elif (MBED_MAJOR_VERSION == 2) &&\ |
| kenjiArai | 2:aa6fdecebf2b | 20 | (MBED_MINOR_VERSION == 0) &&\ |
| kenjiArai | 2:aa6fdecebf2b | 21 | (MBED_PATCH_VERSION == 165) |
| kenjiArai | 2:aa6fdecebf2b | 22 | #else |
| kenjiArai | 2:aa6fdecebf2b | 23 | # error "Please use mbed-os-6.0.0-alpha-3 or mbed2-165" |
| kenjiArai | 2:aa6fdecebf2b | 24 | #endif |
| kenjiArai | 2:aa6fdecebf2b | 25 | |
| kenjiArai | 2:aa6fdecebf2b | 26 | void print_revision(void) |
| kenjiArai | 2:aa6fdecebf2b | 27 | { |
| kenjiArai | 2:aa6fdecebf2b | 28 | printf("MBED_MAJOR_VERSION = %d, ", MBED_MAJOR_VERSION); |
| kenjiArai | 2:aa6fdecebf2b | 29 | printf("MINOR = %d, ", MBED_MINOR_VERSION); |
| kenjiArai | 2:aa6fdecebf2b | 30 | printf("PATCH = %d\r\n", MBED_PATCH_VERSION); |
| kenjiArai | 2:aa6fdecebf2b | 31 | } |
