diff options
author | isiora <none@example.com> | 2018-03-07 11:54:18 +0000 |
---|---|---|
committer | isiora <none@example.com> | 2018-03-07 11:54:18 +0000 |
commit | e840c781aa12fab1d53eab4c4c11b43e776894e5 (patch) | |
tree | af365fd86e63496e8ac1cc5689e9eabb47f40f41 /os | |
parent | 46258f1272ea08112b7cd065f5c974658c99cdc4 (diff) | |
download | ChibiOS-e840c781aa12fab1d53eab4c4c11b43e776894e5.tar.gz ChibiOS-e840c781aa12fab1d53eab4c4c11b43e776894e5.tar.bz2 ChibiOS-e840c781aa12fab1d53eab4c4c11b43e776894e5.zip |
Patched missing PIO_WPMR.
git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11616 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/boards/ATSAMA5D2_XULT_SEC/board.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/os/hal/boards/ATSAMA5D2_XULT_SEC/board.c b/os/hal/boards/ATSAMA5D2_XULT_SEC/board.c index 273aa617d..c20cfd8b3 100644 --- a/os/hal/boards/ATSAMA5D2_XULT_SEC/board.c +++ b/os/hal/boards/ATSAMA5D2_XULT_SEC/board.c @@ -186,6 +186,8 @@ void boardInit(void) { /* Enabling write protection. */
pmcEnableWP();
+
+ _PIOA->PIO_WPMR = 0x50494F00;
#endif /* SAMA_HAL_IS_SECURE */
/* Configuring all PIO A pads with default configuration. */
@@ -253,4 +255,7 @@ void boardInit(void) { #endif /* SAMA_HAL_IS_SECURE */
i++;
}
+#if SAMA_HAL_IS_SECURE
+ _PIOA->PIO_WPMR = 0x50494F01;
+#endif /* SAMA_HAL_IS_SECURE */
}
|