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/platforms/STM32/icu_lld.h | |
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/platforms/STM32/icu_lld.h')
-rw-r--r-- | os/hal/platforms/STM32/icu_lld.h | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/os/hal/platforms/STM32/icu_lld.h b/os/hal/platforms/STM32/icu_lld.h index 758b9c352..437390d52 100644 --- a/os/hal/platforms/STM32/icu_lld.h +++ b/os/hal/platforms/STM32/icu_lld.h @@ -162,21 +162,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.
@@ -188,6 +181,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;
@@ -196,10 +195,6 @@ typedef struct { */
icucallback_t period_cb;
/* End of the mandatory fields.*/
- /**
- * @brief TIM PSC (pre-scaler) register initialization data.
- */
- uint16_t psc;
} ICUConfig;
/**
|