diff options
author | edolomb <none@example.com> | 2018-01-15 20:20:50 +0000 |
---|---|---|
committer | edolomb <none@example.com> | 2018-01-15 20:20:50 +0000 |
commit | d988de62315c3c8bf0adde17dcb2518de0c0e740 (patch) | |
tree | c703bf0ad0002292780f16e30a41c257db6edc0c /os/hal/ports | |
parent | 8ad821c6880c772612ddd9b1139b537f1714d510 (diff) | |
download | ChibiOS-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')
-rw-r--r-- | os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c | 5 |
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);
|