Arduino board run on Mbed-os6.8.1 (only test purpose not official). Need Mbed Studio(1.3.1) not online compiler. If you compile on the online compiler, you can get a hex file but it does NOT work!!!

Dependencies:   APDS_9960 LPS22HB LSM9DS1 HTS221

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers check_revision.h Source File

check_revision.h

00001 /*
00002  * Check Mbed revision
00003  *
00004  * Copyright (c) 2019,'20,'21 Kenji Arai / JH1PJL
00005  *  http://www7b.biglobe.ne.jp/~kenjia/
00006  *  https://os.mbed.com/users/kenjiArai/
00007  *      Created:    July      17th, 2019
00008  *      Revised:    February  28th, 2021
00009  */
00010 
00011 //    RUN ONLY ON mbed-os-6.8.0
00012 //      https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-6.8.0
00013 #if (MBED_MAJOR_VERSION == 6) &&\
00014     (MBED_MINOR_VERSION == 8) &&\
00015     (MBED_PATCH_VERSION == 0)
00016 #else
00017 #   error "Please use mbed-os-6.8.0"
00018 #endif
00019 
00020 void print_revision(void)
00021 {
00022     print_usb("MBED_MAJOR_VERSION = %d, ", MBED_MAJOR_VERSION);
00023     print_usb("MINOR = %d, ", MBED_MINOR_VERSION);
00024     print_usb("PATCH = %d\r\n", MBED_PATCH_VERSION);
00025 }