From 1509b6f82598f71646dd6c41bf5f308d4e5f16a1 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 8 Apr 2013 09:38:15 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5568 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/SPC5xx/eTimer_v1/icu_lld.h | 26 +++++++++++++------------- 1 file 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 -- cgit v1.2.3