SAMV7 MCAN: Correct usage of PCLK prescaler. From Frank Benkert

This commit is contained in:
Gregory Nutt 2015-08-12 11:17:03 -06:00
parent 53638b10dc
commit b9d4ead73f

View File

@ -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 */