aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-04-08 09:38:15 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-04-08 09:38:15 +0000
commit1509b6f82598f71646dd6c41bf5f308d4e5f16a1 (patch)
treea9d798188ead74fddc43fa8ace9fcb069399543a /os
parent2f1c7a87696d2a35c9b86d195bdcb7d4e5dd65ec (diff)
downloadChibiOS-1509b6f82598f71646dd6c41bf5f308d4e5f16a1.tar.gz
ChibiOS-1509b6f82598f71646dd6c41bf5f308d4e5f16a1.tar.bz2
ChibiOS-1509b6f82598f71646dd6c41bf5f308d4e5f16a1.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5568 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/SPC5xx/eTimer_v1/icu_lld.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/os/hal/platforms/SPC5xx/eTimer_v1/icu_lld.h b/os/hal/platforms/SPC5xx/eTimer_v1/icu_lld.h
index 74ce6e5fc..407173e58 100644
--- a/os/hal/platforms/SPC5xx/eTimer_v1/icu_lld.h
+++ b/os/hal/platforms/SPC5xx/eTimer_v1/icu_lld.h
@@ -88,7 +88,7 @@
* @name Configuration options
* @{
*/
-#if SPC5_HAS_ETIMER0
+#if SPC5_HAS_ETIMER0 || defined(__DOXYGEN__)
/**
* @brief ICUD1 driver enable switch.
* @details If set to @p TRUE the support for ICUD1 is included.
@@ -173,7 +173,7 @@
#endif
#endif
-#if SPC5_HAS_ETIMER1
+#if SPC5_HAS_ETIMER1 || defined(__DOXYGEN__)
/**
* @brief ICUD6 driver enable switch.
* @details If set to @p TRUE the support for ICUD6 is included.
@@ -258,7 +258,7 @@
#endif
#endif
-#if SPC5_HAS_ETIMER2
+#if SPC5_HAS_ETIMER2 || defined(__DOXYGEN__)
/**
* @brief ICUD13 driver enable switch.
* @details If set to @p TRUE the support for ICUD13 is included.
@@ -360,28 +360,28 @@
#error "ETIMER2 not present in the selected device"
#endif
-#define SPC5_ICU_USE_ETIMER0 (SPC5_ICU_USE_SMOD6 || \
+#define SPC5_ICU_USE_ETIMER0 (SPC5_ICU_USE_SMOD0 || \
+ SPC5_ICU_USE_SMOD1 || \
+ SPC5_ICU_USE_SMOD2 || \
+ SPC5_ICU_USE_SMOD3 || \
+ SPC5_ICU_USE_SMOD4 || \
+ SPC5_ICU_USE_SMOD5)
+
+#define SPC5_ICU_USE_ETIMER1 (SPC5_ICU_USE_SMOD6 || \
SPC5_ICU_USE_SMOD7 || \
SPC5_ICU_USE_SMOD8 || \
SPC5_ICU_USE_SMOD9 || \
SPC5_ICU_USE_SMOD10 || \
SPC5_ICU_USE_SMOD11)
-#define SPC5_ICU_USE_ETIMER1 (SPC5_ICU_USE_SMOD12 || \
+#define SPC5_ICU_USE_ETIMER2 (SPC5_ICU_USE_SMOD12 || \
SPC5_ICU_USE_SMOD13 || \
SPC5_ICU_USE_SMOD14 || \
SPC5_ICU_USE_SMOD15 || \
SPC5_ICU_USE_SMOD16 || \
SPC5_ICU_USE_SMOD17)
-#define SPC5_ICU_USE_ETIMER2 (SPC5_ICU_USE_SMOD18 || \
- SPC5_ICU_USE_SMOD19 || \
- SPC5_ICU_USE_SMOD20 || \
- SPC5_ICU_USE_SMOD21 || \
- SPC5_ICU_USE_SMOD22 || \
- SPC5_ICU_USE_SMOD23)
-
-#if !SPC5_ICU_USE_TIMER0 && !SPC5_ICU_USE_TIMER1 && !SPC5_ICU_USE_TIMER2
+#if !SPC5_ICU_USE_ETIMER0 && !SPC5_ICU_USE_ETIMER1 && !SPC5_ICU_USE_ETIMER2
#error "ICU driver activated but no SMOD peripheral assigned"
#endif