aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-01-15 20:20:11 +0000
committeredolomb <none@example.com>2018-01-15 20:20:11 +0000
commit96fcbfd22103beae2f7cc8ff2cd1fca85135a2c5 (patch)
tree658028197b3f3ec1c4903f302bfd84d9d96f7f10 /os/hal
parent8c55bff0adfcbe032123202788492f4e8715beef (diff)
downloadChibiOS-96fcbfd22103beae2f7cc8ff2cd1fca85135a2c5.tar.gz
ChibiOS-96fcbfd22103beae2f7cc8ff2cd1fca85135a2c5.tar.bz2
ChibiOS-96fcbfd22103beae2f7cc8ff2cd1fca85135a2c5.zip
Added security configuration
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11282 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/SAMA/LLD/SDMMCv1/sama_sdmmc_lld.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/LLD/SDMMCv1/sama_sdmmc_lld.c b/os/hal/ports/SAMA/LLD/SDMMCv1/sama_sdmmc_lld.c
index 7aed656dc..f21aca143 100644
--- a/os/hal/ports/SAMA/LLD/SDMMCv1/sama_sdmmc_lld.c
+++ b/os/hal/ports/SAMA/LLD/SDMMCv1/sama_sdmmc_lld.c
@@ -83,6 +83,9 @@ OSAL_IRQ_HANDLER(SAMA_SDMMCD1_HANDLER) {
void sdmmcInit(void)
{
#if PLATFORM_SDMMC_USE_SDMMC1 == TRUE
+#if SAMA_HAL_IS_SECURE
+ mtxConfigPeriphSecurity(MATRIX0, ID_SDMMC1, SECURE_PER);
+#endif /* SAMA_HAL_IS_SECURE */
/* Driver initialization.*/
sdmmcObjectInit(&SDMMCD1);
#endif