From b9d4ead73fe53c040c70f347e753abe60f0c420c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 12 Aug 2015 11:17:03 -0600 Subject: [PATCH] SAMV7 MCAN: Correct usage of PCLK prescaler. From Frank Benkert --- arch/arm/src/samv7/sam_mcan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/samv7/sam_mcan.c b/arch/arm/src/samv7/sam_mcan.c index 4062303332..230e6e22e8 100755 --- a/arch/arm/src/samv7/sam_mcan.c +++ b/arch/arm/src/samv7/sam_mcan.c @@ -3443,7 +3443,7 @@ FAR struct can_dev_s *sam_mcan_initialize(int port) * use PCK5 to derive bit rate. */ - regval = PMC_PCK_PRES(CONFIG_SAMV7_MCAN_CLKSRC_PRESCALER) | SAMV7_MCAN_CLKSRC; + regval = PMC_PCK_PRES(CONFIG_SAMV7_MCAN_CLKSRC_PRESCALER - 1) | SAMV7_MCAN_CLKSRC; putreg32(regval, SAM_PMC_PCK5); /* Enable PCK5 */