aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorisiora <none@example.com>2017-08-14 09:10:38 +0000
committerisiora <none@example.com>2017-08-14 09:10:38 +0000
commitccbb6cb153f1740d870c63ee86fc9db13c749784 (patch)
treefb766767810986f06a7c0b103080537cc5a747ff /os/hal
parentf4d5d1c0ad311a2f04fbb8149cd403459b5d9fd9 (diff)
downloadChibiOS-ccbb6cb153f1740d870c63ee86fc9db13c749784.tar.gz
ChibiOS-ccbb6cb153f1740d870c63ee86fc9db13c749784.tar.bz2
ChibiOS-ccbb6cb153f1740d870c63ee86fc9db13c749784.zip
Added a macro to acknowledge the current interrupt.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10424 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/SAMA/SAMA5D2x/aic.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/aic.h b/os/hal/ports/SAMA/SAMA5D2x/aic.h
index eff492e66..92a924b31 100644
--- a/os/hal/ports/SAMA/SAMA5D2x/aic.h
+++ b/os/hal/ports/SAMA/SAMA5D2x/aic.h
@@ -45,6 +45,14 @@
/* Driver macros. */
/*===========================================================================*/
+/**
+ * @brief Acknowledge the current interrupt.
+ *
+ */
+#define aicAckInt() { \
+ SAIC->AIC_EOICR = AIC_EOICR_ENDIT; \
+}
+
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/