aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/SAMA/SAMA5D2x/aic.h
diff options
context:
space:
mode:
authorisiora <none@example.com>2017-10-22 21:52:19 +0000
committerisiora <none@example.com>2017-10-22 21:52:19 +0000
commitfd2b5f1738bb568dc8de1ee01e33d2ce39b4eab3 (patch)
treec0bc60642af5805b15935a1be164034f003a68c4 /os/hal/ports/SAMA/SAMA5D2x/aic.h
parent211dcdd26d5b6355ac217832746b2c2b27a48522 (diff)
downloadChibiOS-fd2b5f1738bb568dc8de1ee01e33d2ce39b4eab3.tar.gz
ChibiOS-fd2b5f1738bb568dc8de1ee01e33d2ce39b4eab3.tar.bz2
ChibiOS-fd2b5f1738bb568dc8de1ee01e33d2ce39b4eab3.zip
Reintegrate sama5d2_dev branch
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10879 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/SAMA/SAMA5D2x/aic.h')
-rw-r--r--os/hal/ports/SAMA/SAMA5D2x/aic.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/aic.h b/os/hal/ports/SAMA/SAMA5D2x/aic.h
index defee9d30..47b8ec173 100644
--- a/os/hal/ports/SAMA/SAMA5D2x/aic.h
+++ b/os/hal/ports/SAMA/SAMA5D2x/aic.h
@@ -18,7 +18,7 @@
* @file SAMA5D2x/aic.h
* @brief SAMA AIC support macros and structures.
*
- * @addtogroup COMMON_SAMA5D2x_AIC
+ * @addtogroup SAMA5D2x_AIC
* @{
*/
@@ -53,9 +53,15 @@
/**
* @brief Acknowledge the current interrupt.
*/
-#define aicAckInt() { \
- SAIC->AIC_EOICR = AIC_EOICR_ENDIT; \
+#if SAMA_HAL_IS_SECURE
+#define aicAckInt() { \
+ SAIC->AIC_EOICR = AIC_EOICR_ENDIT; \
}
+#else
+#define aicAckInt() { \
+ AIC->AIC_EOICR = AIC_EOICR_ENDIT; \
+}
+#endif
/*===========================================================================*/
/* External declarations. */