Reciprocal Frequency counter only for STM32F401、F411 and F466. Reciprocal mode(pulse width measurement)

Dependencies:   fc_recipro_STM32F4xx

check_revision.cpp

Committer:
kenjiArai
Date:
2020-01-19
Revision:
1:46cbfefcaa48

File content as of revision 1:46cbfefcaa48:

/*
 * 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:    January   17th, 2020
 */

#include "mbed.h"

//    RUN ONLY ON mbed-os5.15.0
//      https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-5.15.0
#if (MBED_MAJOR_VERSION == 5) &&\
    (MBED_MINOR_VERSION == 15) &&\
    (MBED_PATCH_VERSION == 0)
//    RUN ONLY ON mbed 2.0.165
#elif (MBED_MAJOR_VERSION == 2) &&\
    (MBED_MINOR_VERSION == 0) &&\
    (MBED_PATCH_VERSION == 165)
#else
//#warning "Please use mbed-os5.15.0 or mbed 2.0.165""
#   error "Please use mbed-os5.15.0 or mbed 2.0.165"
#endif