Reciprocal Frequency counter only for STM32F401、F411 and F466. Reciprocal mode(pulse width measurement)
Dependencies: fc_recipro_STM32F4xx
Diff: check_revision.cpp
- Revision:
- 1:46cbfefcaa48
diff -r da29cdc50643 -r 46cbfefcaa48 check_revision.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/check_revision.cpp Sun Jan 19 06:57:21 2020 +0000 @@ -0,0 +1,25 @@ +/* + * 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 \ No newline at end of file