diff options
Diffstat (limited to 'os/hal/ports/SAMA/SAMA5D2x/aic.h')
-rw-r--r-- | os/hal/ports/SAMA/SAMA5D2x/aic.h | 12 |
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. */
|