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.
Dependencies: MadgwickFilter BMX055
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: FFeburary 7th, 2020 00008 * Revised: FFeburary 7th, 2020 00009 */ 00010 00011 #include "mbed.h" 00012 00013 // RUN ONLY ON mbed-os6.0.0-alpha1 (430e64fce8) 00014 // https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-6.0.0-alpha1 00015 // ????? 00016 // not 6.0.0 but 5.14.2 -> is mbed-os6 a fake revision? 00017 #if (MBED_MAJOR_VERSION == 5) &&\ 00018 (MBED_MINOR_VERSION == 14) &&\ 00019 (MBED_PATCH_VERSION == 2) 00020 #else 00021 //#warning "Please use mbed-os6.0.0-alpha1" 00022 # error "Please use mbed-os6.0.0-alpha1" 00023 #endif 00024 00025 void print_revision(void) 00026 { 00027 printf("MBED_MAJOR_VERSION = %d\r\n", MBED_MAJOR_VERSION); 00028 printf("MBED_MAJOR_VERSION = %d\r\n", MBED_MINOR_VERSION); 00029 printf("MBED_MAJOR_VERSION = %d\r\n", MBED_PATCH_VERSION); 00030 }
Generated on Sat Jul 16 2022 07:24:48 by
