Frequency Counter Library. Only for mbed LPC1768, mbed LPC1114FN28, Nucleo-F401 and Nucleo-F411. No way to change pin assign.
Dependents: Frequency_Counter Frequency_wind_speed_measure Frequency_counter_wind_speed
Please refer following page.
http://developer.mbed.org/users/kenjiArai/notebook/simple-frequency-counter/
Diff: freq_counter.h
- Revision:
- 3:61bea8bfe404
- Parent:
- 2:54c05b0a117a
- Child:
- 4:9a726b997366
--- a/freq_counter.h Tue Oct 21 11:19:54 2014 +0000 +++ b/freq_counter.h Wed Oct 22 00:35:23 2014 +0000 @@ -6,7 +6,7 @@ * http://www.page.sannet.ne.jp/kenjia/index.html * http://mbed.org/users/kenjiArai/ * Created: October 18th, 2014 - * Revised: October 21st, 2014 + * Revised: October 22nd, 2014 * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE @@ -22,16 +22,18 @@ /** Frequency Counter * - * CAUTION: Direct access to the CPU Timer module!! \\ - * No way to change pin assign and timer module, \\ - * mbed LPC1768 -> p30, \\ - * Nucleo F401RE & Nucleo F411RE -> PA_0/A0 \\ + * CAUTION: Direct access to the CPU Timer module!! + * No way to change pin assign and timer module, + * mbed LPC1768 -> p30, + * mbed LPC1114FN28 -> dp14, + * Nucleo F401RE & Nucleo F411RE -> PA_0/A0 * * @code * #include "mbed.h" * #include "freq_counter.h" * * F_COUNTER fc(p30); // for LPC1768 + * //F_COUNTER fc(dp14); // for LPC1114 * //F_COUNTER fc(PA_0); // for F401 & F411 * * int main() {