Minor change

git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11621 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
edolomb 2018-03-07 17:47:15 +00:00
parent de05bd924b
commit 9151ef60c0
1 changed files with 3 additions and 4 deletions

View File

@ -187,7 +187,9 @@ void boardInit(void) {
/* Enabling write protection. */
pmcEnableWP();
_PIOA->PIO_WPMR = 0x50494F00;
/* Disabling write protection */
_PIOA->PIO_WPMR = PIO_WPMR_WPKEY_PASSWD;
#endif /* SAMA_HAL_IS_SECURE */
/* Configuring all PIO A pads with default configuration. */
@ -255,7 +257,4 @@ void boardInit(void) {
#endif /* SAMA_HAL_IS_SECURE */
i++;
}
#if SAMA_HAL_IS_SECURE
_PIOA->PIO_WPMR = 0x50494F01;
#endif /* SAMA_HAL_IS_SECURE */
}