STMicroelectronics library to handle a hardware timer as a frequency divider.

Dependents:   X_NUCLEO_CCA02M1

Fork of ST_FREQUENCY_DIVIDER by ST Expansion SW Team

Platform compatibility

Revision:
0:f11903264b5e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/drivers/FrequencyDivider.h	Fri Apr 21 10:22:24 2017 +0200
@@ -0,0 +1,28 @@
+#ifndef MBED_FREQUENCY_DIVIDER_H
+#define MBED_FREQUENCY_DIVIDER_H
+
+#include "platform/platform.h"
+#include "hal/stm_i2s_api.h"
+
+
+/** A frequency divider class.
+ *
+ * @Note Synchronization level: No Synchronization.
+ *
+ */
+class FrequencyDivider {
+
+public:
+
+    /**
+     * Creating a frequency divider.
+     */
+    FrequencyDivider();
+
+    /**
+     * Start dividing a frequency.
+     */
+    void start(void);
+};
+
+#endif // MBED_FREQUENCY_DIVIDER_H