Only SAM4 family has RTTDIS bit in the MR register. SourceForge bug #33 from Fabien Comte

This commit is contained in:
Gregory Nutt 2014-09-17 07:42:12 -06:00
parent 9591e76d5a
commit 82381dbdc6

View File

@ -440,7 +440,9 @@ static int sam34_stop(FAR struct timer_lowerhalf_s *lower)
}
#if !(defined(CONFIG_RTC_HIRES) && defined (CONFIG_SAM34_RTC))
#if defined(RTT_MR_RTTDIS)
sam34_putreg(RTT_MR_RTTDIS, SAM_RTT_MR); /* Disable RTT */
#endif
sam_rtt_disableclk(); /* Disable peripheral clock */
#endif