X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=drv%2Fat91%2Fsysirq.c;h=d3991fddbec7c6bb2ba1911a7f171e6452010153;hb=8f4e27cce0dc0947f2918263d9185b097f67bd59;hp=186dcb12628b3bc16b99917c343cc0797333aeee;hpb=77c1d6ba65a199f60faa0e0a68e63ef0eb87677c;p=bertos.git diff --git a/drv/at91/sysirq.c b/drv/at91/sysirq.c index 186dcb12..d3991fdd 100644 --- a/drv/at91/sysirq.c +++ b/drv/at91/sysirq.c @@ -27,7 +27,7 @@ * the GNU General Public License. * * Copyright 2007 Develer S.r.l. (http://www.develer.com/) - * This file is part of DevLib - See README.devlib for information. + * * --> * * \version $Id$ @@ -127,8 +127,10 @@ void sysirq_init(void) AIC_SVR(SYSC_ID) = sysirq_dispatcher; /* Initialize to edge triggered with defined priority. */ AIC_SMR(SYSC_ID) = AIC_SRCTYPE_INT_EDGE_TRIGGERED | SYSIRQ_PRIORITY; - /* Clear interrupt */ + /* Clear pending interrupt */ AIC_ICCR = BV(SYSC_ID); + /* Enable the system IRQ */ + AIC_IECR = BV(SYSC_ID); IRQ_RESTORE(flags); MOD_INIT(sysirq);