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:
parent
de05bd924b
commit
9151ef60c0
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue