diff options
author | edolomb <none@example.com> | 2018-03-07 17:47:15 +0000 |
---|---|---|
committer | edolomb <none@example.com> | 2018-03-07 17:47:15 +0000 |
commit | 9151ef60c0c06d0e81ca34695d24dbf04eda91e9 (patch) | |
tree | cffb975571905e6127486feab98de6099a5911ba /os/hal | |
parent | de05bd924be9b45efcc16181f67c61991ff0fccc (diff) | |
download | ChibiOS-9151ef60c0c06d0e81ca34695d24dbf04eda91e9.tar.gz ChibiOS-9151ef60c0c06d0e81ca34695d24dbf04eda91e9.tar.bz2 ChibiOS-9151ef60c0c06d0e81ca34695d24dbf04eda91e9.zip |
Minor change
git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11621 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/boards/ATSAMA5D2_XULT_SEC/board.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/os/hal/boards/ATSAMA5D2_XULT_SEC/board.c b/os/hal/boards/ATSAMA5D2_XULT_SEC/board.c index c20cfd8b3..9bd158384 100644 --- a/os/hal/boards/ATSAMA5D2_XULT_SEC/board.c +++ b/os/hal/boards/ATSAMA5D2_XULT_SEC/board.c @@ -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 */
}
|