Only SAM4 family has RTTDIS bit in the MR register. SourceForge bug #33 from Fabien Comte
This commit is contained in:
parent
9591e76d5a
commit
82381dbdc6
@ -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(CONFIG_RTC_HIRES) && defined (CONFIG_SAM34_RTC))
|
||||||
|
#if defined(RTT_MR_RTTDIS)
|
||||||
sam34_putreg(RTT_MR_RTTDIS, SAM_RTT_MR); /* Disable RTT */
|
sam34_putreg(RTT_MR_RTTDIS, SAM_RTT_MR); /* Disable RTT */
|
||||||
|
#endif
|
||||||
sam_rtt_disableclk(); /* Disable peripheral clock */
|
sam_rtt_disableclk(); /* Disable peripheral clock */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user