diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-03-31 18:21:08 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-03-31 18:21:08 +0000 |
commit | a0baaface35fec7ecab6f78e66de35c6e1187857 (patch) | |
tree | f9d28813a164e5c11f918d69762bd9df6544816e /os/hal/templates | |
parent | 91e4dee81eef472b69d7b5fe321d8c16b4a0ac59 (diff) | |
download | ChibiOS-a0baaface35fec7ecab6f78e66de35c6e1187857.tar.gz ChibiOS-a0baaface35fec7ecab6f78e66de35c6e1187857.tar.bz2 ChibiOS-a0baaface35fec7ecab6f78e66de35c6e1187857.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2855 35acf78f-673a-0410-8e92-d51de3d6d3f4
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;
|