diff options
Diffstat (limited to 'os/hal/templates')
-rw-r--r-- | os/hal/templates/icu_lld.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/os/hal/templates/icu_lld.h b/os/hal/templates/icu_lld.h index 68ec93df6..34549b76e 100644 --- a/os/hal/templates/icu_lld.h +++ b/os/hal/templates/icu_lld.h @@ -56,21 +56,14 @@ typedef enum { } icumode_t;
/**
- * @brief ICU counter type.
- */
-typedef uint16_t icucnt_t;
-
-/**
- * @brief Type of a structure representing an ICU driver.
+ * @brief ICU frequency type.
*/
-typedef struct ICUDriver ICUDriver;
+typedef uint32_t icufreq_t;
/**
- * @brief ICU notification callback type.
- *
- * @param[in] icup pointer to a @p ICUDriver object
+ * @brief ICU counter type.
*/
-typedef void (*icucallback_t)(ICUDriver *icup);
+typedef uint16_t icucnt_t;
/**
* @brief Driver configuration structure.
@@ -82,6 +75,12 @@ typedef struct { */
icumode_t mode;
/**
+ * @brief Timer clock in Hz.
+ * @note The low level can use assertions in order to catch invalid
+ * frequency specifications.
+ */
+ icufreq_t frequency;
+ /**
* @brief Callback for pulse width measurement.
*/
icucallback_t width_cb;
|