diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-11-20 18:04:07 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-11-20 18:04:07 +0000 |
commit | 9369d75516d5edb0e892f5ce1a5d7781917a64a5 (patch) | |
tree | 915f03f2946cd362862ece94d58873386b1889e8 /os/hal/platforms/STM32/icu_lld.h | |
parent | d4901e2acc5d3924ca766ed35949c0b90823d1fa (diff) | |
download | ChibiOS-9369d75516d5edb0e892f5ce1a5d7781917a64a5.tar.gz ChibiOS-9369d75516d5edb0e892f5ce1a5d7781917a64a5.tar.bz2 ChibiOS-9369d75516d5edb0e892f5ce1a5d7781917a64a5.zip |
STM32F4-Discovery demo working.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3516 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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/icu_lld.h b/os/hal/platforms/STM32/icu_lld.h index 3156023eb..b97930609 100644 --- a/os/hal/platforms/STM32/icu_lld.h +++ b/os/hal/platforms/STM32/icu_lld.h @@ -262,7 +262,7 @@ struct ICUDriver { *
* @notapi
*/
-#define icu_lld_get_width(icup) ((icup)->tim->CCR2 + 1)
+#define icu_lld_get_width(icup) ((icup)->tim->CCR[1] + 1)
/**
* @brief Returns the width of the latest cycle.
@@ -274,7 +274,7 @@ struct ICUDriver { *
* @notapi
*/
-#define icu_lld_get_period(icup) ((icup)->tim->CCR1 + 1)
+#define icu_lld_get_period(icup) ((icup)->tim->CCR[0] + 1)
/*===========================================================================*/
/* External declarations. */
|