From c0f27d8aa623ab347588b6538a9c8208c4623020 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 21 Apr 2014 17:06:01 -0600 Subject: [PATCH] SAM4S: Fix error in macro that disabled peripheral clocking. From Bob Doiron --- ChangeLog | 2 ++ arch/arm/src/sam34/sam4s_periphclks.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b6c9a4e0b3..d5ee03bc48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7221,4 +7221,6 @@ Frank Bennett (2014-4-20). * arch/arm/src/sam34/sam_rtc.c/.h: Port RTC driver from SAMA5 to SAM3/4. From Bob Doiron (2014-4-21) + * arch/arm/src/sam34/sam4s_periphclks.h: Fix error in macros that + disable peripheral clocking. From Bob Doiron (2014-4-21) diff --git a/arch/arm/src/sam34/sam4s_periphclks.h b/arch/arm/src/sam34/sam4s_periphclks.h index d44e432f2d..e7d1db402d 100644 --- a/arch/arm/src/sam34/sam4s_periphclks.h +++ b/arch/arm/src/sam34/sam4s_periphclks.h @@ -52,8 +52,8 @@ #define sam_enableperiph0(s) putreg32((1 << (s)), SAM_PMC_PCER0) #define sam_enableperiph1(s) putreg32((1 << ((s) - 32)), SAM_PMC_PCER1) -#define sam_disableperiph0(s) putreg32((1 << (s)), SAM_PMC_PDER0) -#define sam_disableperiph1(s) putreg32((1 << ((s) - 32)), SAM_PMC_PDER1) +#define sam_disableperiph0(s) putreg32((1 << (s)), SAM_PMC_PCDR0) +#define sam_disableperiph1(s) putreg32((1 << ((s) - 32)), SAM_PMC_PCDR1) #define sam_supc_enableclk() sam_enableperiph0(SAM_PID_SUPC) #define sam_rstc_enableclk() sam_enableperiph0(SAM_PID_RSTC)