sam_systemreset.c edited online with Bitbucket

This commit is contained in:
David Sidrane 2016-05-23 23:24:59 +00:00
parent c41e6d823a
commit 051aa42786

View File

@ -77,8 +77,8 @@ void up_systemreset(void)
rstmr = gettreg32(SAM_RSTC_MR);
rstmr &= ~RSTC_MR_ERSTL_MASK;
rstmr &= RSTC_MR_ERSTL(CONFIG_SAMV7_EXTRESET_ERST) | RSTC_MR_KEY;
putreg32(regval, SAM_RSTC_MR);
rstmr &= RSTC_MR_ERSTL(CONFIG_SAMV7_EXTRESET_ERST-1) | RSTC_MR_KEY;
putreg32(rstmr, SAM_RSTC_MR);
#endif
putreg32(regval, SAM_RSTC_CR);