Kenji Arai / Mbed 2 deprecated Keypad_input_OS2

Dependencies:   mbed Keypad

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers check_revision.cpp Source File

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 }