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.
check_revision.cpp
00001 /* 00002 * Check Mbed revision 00003 * 00004 * Copyright (c) 2020 Kenji Arai / JH1PJL 00005 * http://www7b.biglobe.ne.jp/~kenjia/ 00006 * https://os.mbed.com/users/kenjiArai/ 00007 * Revised: Feburary 16th, 2020 00008 * Revised: April 6th, 2020 00009 */ 00010 00011 #include "mbed.h" 00012 00013 // RUN on mbed-os-6.0.0-alpha-3 00014 // https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-6.0.0-alpha-3 00015 #if (MBED_MAJOR_VERSION == 5) &&\ 00016 (MBED_MINOR_VERSION == 15) &&\ 00017 (MBED_PATCH_VERSION == 1) 00018 // RUN on mbed 2.0.165 00019 #elif (MBED_MAJOR_VERSION == 2) &&\ 00020 (MBED_MINOR_VERSION == 0) &&\ 00021 (MBED_PATCH_VERSION == 165) 00022 #else 00023 # error "Please use mbed-os-6.0.0-alpha-3 or mbed2-165" 00024 #endif 00025 00026 void print_revision(void) 00027 { 00028 printf("MBED_MAJOR_VERSION = %d, ", MBED_MAJOR_VERSION); 00029 printf("MINOR = %d, ", MBED_MINOR_VERSION); 00030 printf("PATCH = %d\r\n", MBED_PATCH_VERSION); 00031 }
Generated on Wed Jul 13 2022 01:19:28 by
1.7.2