mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
SAM4S: Fix error in macro that disabled peripheral clocking. From Bob Doiron
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user