STMicroelectronics library to handle a hardware timer as a frequency divider.
Fork of ST_FREQUENCY_DIVIDER by
Platform compatibility
- This driver currently provides support for the Nucleo F4 Family, but it has been tested only with the following MCU boards:
Diff: drivers/FrequencyDivider.h
- 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