From a0baaface35fec7ecab6f78e66de35c6e1187857 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 31 Mar 2011 18:21:08 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2855 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/icu_lld.h | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'os/hal/platforms/STM32/icu_lld.h') 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. @@ -187,6 +180,12 @@ typedef struct { * @brief Driver mode. */ 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. */ @@ -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; /** -- cgit v1.2.3