aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/SAMA/LLD
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-04-13 12:57:25 +0000
committeredolomb <none@example.com>2018-04-13 12:57:25 +0000
commitc628aa0f33756d14582d016b56ce5f916ab85f15 (patch)
treea3115b80ae10636aaec44498fc99d49bc6a85bca /os/hal/ports/SAMA/LLD
parent3cbbff60f22600092f2259b4b70fb446f726913e (diff)
downloadChibiOS-c628aa0f33756d14582d016b56ce5f916ab85f15.tar.gz
ChibiOS-c628aa0f33756d14582d016b56ce5f916ab85f15.tar.bz2
ChibiOS-c628aa0f33756d14582d016b56ce5f916ab85f15.zip
Added configure security instruction
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11922 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/ports/SAMA/LLD')
-rw-r--r--os/hal/ports/SAMA/LLD/RTCv1/hal_rtc_lld.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/LLD/RTCv1/hal_rtc_lld.c b/os/hal/ports/SAMA/LLD/RTCv1/hal_rtc_lld.c
index e408cd77d..174996b8e 100644
--- a/os/hal/ports/SAMA/LLD/RTCv1/hal_rtc_lld.c
+++ b/os/hal/ports/SAMA/LLD/RTCv1/hal_rtc_lld.c
@@ -328,6 +328,10 @@ struct RTCDriverVMT _rtc_lld_vmt = {
*/
void rtc_lld_init(void) {
+#if SAMA_HAL_IS_SECURE
+ mtxConfigPeriphSecurity(MATRIX1, ID_SYSC, SECURE_PER);
+#endif
+
/* RTC object initialization.*/
rtcObjectInit(&RTCD0);