function test USBMSD(as external strage for PC USB) and USBSerial. Switching between USBMSD and USBSerial(Not work simultaneously)

see /users/kenjiArai/notebook/usb-interface--usbhost-and-usbdevice/

check_revision.cpp

Committer:
kenjiArai
Date:
2020-04-30
Revision:
1:7a568319eeb7
Parent:
0:c6dea1f647f6

File content as of revision 1:7a568319eeb7:

/*
 * Check Mbed revision
 *
 * Copyright (c) 2019,'20 Kenji Arai / JH1PJL
 *  http://www7b.biglobe.ne.jp/~kenjia/
 *  https://os.mbed.com/users/kenjiArai/
 *      Created:    July      17th, 2019
 *      Revised:    April     28th, 2020
 */

#include "mbed.h"
 
//    RUN ONLY ON mbed-os-5.15.2
//      https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-5.15.2
#if (MBED_MAJOR_VERSION == 5) &&\
    (MBED_MINOR_VERSION == 15) &&\
    (MBED_PATCH_VERSION == 2)
#elif (MBED_MAJOR_VERSION == 5) &&\
    (MBED_MINOR_VERSION == 15) &&\
    (MBED_PATCH_VERSION == 1)
    // use mbed-os-5.15.2 but mbed_version.h has 5.15.1 value
#else
    //#warning "Please use mbed-os-5.15.2"
    #error "Please use mbed-os-5.15.2"
#endif