aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/SAMA
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/SAMA')
-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);