Checked TimerEvent function on os2 old version. Result is okay on Nucleo-L152RE, -F446RE and FRDM-K64F. This TimerEvent is using SoftSerial library and works well on old os2.

Dependencies:   mbed

check_revision.cpp

Committer:
kenjiArai
Date:
2020-05-12
Revision:
0:785500164035

File content as of revision 0:785500164035:

/*
 * Check Mbed revision
 *
 * Copyright (c) 2020 Kenji Arai / JH1PJL
 *  http://www7b.biglobe.ne.jp/~kenjia/
 *  https://os.mbed.com/users/kenjiArai/
 *      Created:    May       12th, 2020
 *      Revised:    May       12th, 2020
 */

#include "mbed.h"
 
//    RUN ONLY ON mbed-os-5.15.3
//      https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-5.15.3
#if (MBED_MAJOR_VERSION == 5) &&\
    (MBED_MINOR_VERSION == 15) &&\
    (MBED_PATCH_VERSION == 3)
#elif (MBED_MAJOR_VERSION == 2) &&\
    (MBED_MINOR_VERSION == 0) &&\
    (MBED_PATCH_VERSION == 132)
#else
    #error "Please use mbed-os-5.15.3 or mbed-os-2.132"
#endif