aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-01-15 20:20:50 +0000
committeredolomb <none@example.com>2018-01-15 20:20:50 +0000
commitd988de62315c3c8bf0adde17dcb2518de0c0e740 (patch)
treec703bf0ad0002292780f16e30a41c257db6edc0c /os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
parent8ad821c6880c772612ddd9b1139b537f1714d510 (diff)
downloadChibiOS-d988de62315c3c8bf0adde17dcb2518de0c0e740.tar.gz
ChibiOS-d988de62315c3c8bf0adde17dcb2518de0c0e740.tar.bz2
ChibiOS-d988de62315c3c8bf0adde17dcb2518de0c0e740.zip
Added security configuration
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11284 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c')
-rw-r--r--os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
index 64adc7289..948d87b6c 100644
--- a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
+++ b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
@@ -180,6 +180,11 @@ void dmaInit(void) {
uint8_t cont, chan;
+#if SAMA_HAL_IS_SECURE
+ mtxConfigPeriphSecurity(MATRIX0, ID_XDMAC0, SECURE_PER);
+ mtxConfigPeriphSecurity(MATRIX0, ID_XDMAC1, SECURE_PER);
+#endif /* SAMA_HAL_IS_SECURE */
+
for (cont = 0; cont < XDMAC_CONTROLLERS; cont++) {
Xdmac *xdmac = dmaControllerSelect(cont);