Simple frequency counter, run without modification on Nucleo board, Input pin PA0, PA1, PB3. Only for STM32F4 series (Tested on Nucleo-F401RE,-F411RE and F446RE)

Dependents:   Frequency_Counter_for_STM32F4xx

see /users/kenjiArai/notebook/frequency-counters/

Revision:
2:54c05b0a117a
Parent:
1:fd2e1c853ab6
Child:
3:61bea8bfe404
--- a/freq_counter.h	Tue Oct 21 03:44:46 2014 +0000
+++ b/freq_counter.h	Tue Oct 21 11:19:54 2014 +0000
@@ -22,14 +22,17 @@
 
 /** Frequency Counter
  *
- *  CAUTION: Direct access to the CPU Timer module!!
- *           No way to change pin assign and timer module
+ *  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 \\
  *
  * @code
  * #include "mbed.h"
  * #include "freq_counter.h"
  *
- * F_COUNTER fc(p30);
+ * F_COUNTER fc(p30);       // for LPC1768
+ * //F_COUNTER fc(PA_0);    // for F401 & F411
  *
  * int main() {
  *   uint32_t frequency = 0;