From ccbb6cb153f1740d870c63ee86fc9db13c749784 Mon Sep 17 00:00:00 2001 From: isiora Date: Mon, 14 Aug 2017 09:10:38 +0000 Subject: 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 --- os/hal/ports/SAMA/SAMA5D2x/aic.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'os/hal') 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. */ /*===========================================================================*/ -- cgit v1.2.3