mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 06:45:19 +00:00
Merged in david_s5/nuttx (pull request #26)
sam_systemreset.c edited online with Bitbucket
This commit is contained in:
commit
e42eca84d3
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue