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/
Diff: check_revision.cpp
- Revision:
- 1:7a568319eeb7
- Parent:
- 0:c6dea1f647f6
--- a/check_revision.cpp Mon Jan 06 10:56:13 2020 +0000 +++ b/check_revision.cpp Thu Apr 30 23:43:35 2020 +0000 @@ -1,21 +1,25 @@ /* * Check Mbed revision * - * Copyright (c) 2019 Kenji Arai / JH1PJL - * http://www.page.sannet.ne.jp/kenjia/index.html + * Copyright (c) 2019,'20 Kenji Arai / JH1PJL + * http://www7b.biglobe.ne.jp/~kenjia/ * https://os.mbed.com/users/kenjiArai/ * Created: July 17th, 2019 - * Revised: December 24th, 2019 + * Revised: April 28th, 2020 */ #include "mbed.h" - -// RUN ONLY ON mbed-os5.15.0 -// https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-5.15.0 + +// 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 == 0) + (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-os5.15.0" - #error "Please use Mbed-os5.15.0" + //#warning "Please use mbed-os-5.15.2" + #error "Please use mbed-os-5.15.2" #endif \ No newline at end of file