From 6f4b10548d89d95cc4ec92aaf51c12dfa455055c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 13 Mar 2013 13:20:42 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5424 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/SPC563Mxx/hal_lld.h | 1 - os/hal/platforms/SPC564Axx/hal_lld.h | 7 +++---- os/hal/platforms/SPC564Axx/spc564a_registry.h | 4 ++-- os/hal/platforms/SPC5xx/EDMA_v1/spc5_edma.c | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) (limited to 'os/hal') diff --git a/os/hal/platforms/SPC563Mxx/hal_lld.h b/os/hal/platforms/SPC563Mxx/hal_lld.h index 4feb08a7d..c0061556d 100644 --- a/os/hal/platforms/SPC563Mxx/hal_lld.h +++ b/os/hal/platforms/SPC563Mxx/hal_lld.h @@ -129,7 +129,6 @@ /** * @brief External clock pre-divider. * @note Must be in range 1...15. - * @note The effective divider factor is this value. */ #if !defined(SPC5_CLK_PREDIV) || defined(__DOXYGEN__) #define SPC5_CLK_PREDIV_VALUE 2 diff --git a/os/hal/platforms/SPC564Axx/hal_lld.h b/os/hal/platforms/SPC564Axx/hal_lld.h index c7ffd1400..7b26945a9 100644 --- a/os/hal/platforms/SPC564Axx/hal_lld.h +++ b/os/hal/platforms/SPC564Axx/hal_lld.h @@ -129,10 +129,9 @@ /** * @brief External clock pre-divider. * @note Must be in range 1...15. - * @note The effective divider factor is this value. */ #if !defined(SPC5_CLK_PREDIV) || defined(__DOXYGEN__) -#define SPC5_CLK_PREDIV_VALUE 2 +#define SPC5_CLK_PREDIV_VALUE 8 #endif /** @@ -140,14 +139,14 @@ * @note Must be in range 32...96. */ #if !defined(SPC5_CLK_MFD_VALUE) || defined(__DOXYGEN__) -#define SPC5_CLK_MFD_VALUE 80 +#define SPC5_CLK_MFD_VALUE 60 #endif /** * @brief Reduced frequency divider. */ #if !defined(SPC5_CLK_RFD) || defined(__DOXYGEN__) -#define SPC5_CLK_RFD RFD_DIV4 +#define SPC5_CLK_RFD RFD_DIV2 #endif /** diff --git a/os/hal/platforms/SPC564Axx/spc564a_registry.h b/os/hal/platforms/SPC564Axx/spc564a_registry.h index a879ae012..4ba03c260 100644 --- a/os/hal/platforms/SPC564Axx/spc564a_registry.h +++ b/os/hal/platforms/SPC564Axx/spc564a_registry.h @@ -49,8 +49,8 @@ #define SPC5_ESCIB_NUMBER 149 #define SPC5_HAS_ESCIC TRUE -#define SPC5_ESCIB_HANDLER vector473 -#define SPC5_ESCIB_NUMBER 473 +#define SPC5_ESCIC_HANDLER vector473 +#define SPC5_ESCIC_NUMBER 473 /* SIU attributes.*/ #define SPC5_HAS_SIU TRUE diff --git a/os/hal/platforms/SPC5xx/EDMA_v1/spc5_edma.c b/os/hal/platforms/SPC5xx/EDMA_v1/spc5_edma.c index 15e851386..dcac0a593 100644 --- a/os/hal/platforms/SPC5xx/EDMA_v1/spc5_edma.c +++ b/os/hal/platforms/SPC5xx/EDMA_v1/spc5_edma.c @@ -665,7 +665,7 @@ CH_IRQ_HANDLER(vector42) { */ CH_IRQ_HANDLER(vector210) { edma_channel_t channel; - uint32_t erl, esr = EDMA.ESR.R; + uint32_t erh, esr = EDMA.ESR.R; CH_IRQ_PROLOGUE(); -- cgit v1.2.3