From e840c781aa12fab1d53eab4c4c11b43e776894e5 Mon Sep 17 00:00:00 2001 From: isiora Date: Wed, 7 Mar 2018 11:54:18 +0000 Subject: Patched missing PIO_WPMR. git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11616 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/boards/ATSAMA5D2_XULT_SEC/board.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'os') 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 */ } -- cgit v1.2.3