diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-23 14:30:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-23 14:30:07 +0000 |
commit | 6faf10944cba8e6461fe1d819e1d4b30f4dfdde8 (patch) | |
tree | 0074bdd2e5ea7f94e2547480e85fe73c7ee0f83f /nuttx/arch/arm/src/lm3s/lm3s_ssi.c | |
parent | 3b9ec2b7dd4cf15048d5196b3a4c2e5f4683634d (diff) | |
download | px4-nuttx-6faf10944cba8e6461fe1d819e1d4b30f4dfdde8.tar.gz px4-nuttx-6faf10944cba8e6461fe1d819e1d4b30f4dfdde8.tar.bz2 px4-nuttx-6faf10944cba8e6461fe1d819e1d4b30f4dfdde8.zip |
Need to clear interrupt
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1819 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/lm3s_ssi.c')
-rwxr-xr-x | nuttx/arch/arm/src/lm3s/lm3s_ssi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_ssi.c b/nuttx/arch/arm/src/lm3s/lm3s_ssi.c index a880d2b23..4370a05fe 100755 --- a/nuttx/arch/arm/src/lm3s/lm3s_ssi.c +++ b/nuttx/arch/arm/src/lm3s/lm3s_ssi.c @@ -760,10 +760,16 @@ static inline struct lm32_ssidev_s *ssi_mapirq(int irq) static int ssi_interrupt(int irq, void *context) { struct lm32_ssidev_s *priv = ssi_mapirq(irq); + uint32 regval; int ntxd; DEBUGASSERT(priv != NULL); + /* Clear pending interrupts */ + + regval = ssi_getreg(priv, LM3S_SSI_RIS_OFFSET); + ssi_putreg(priv, LM3S_SSI_ICR_OFFSET, regval); + /* Handle outgoing Tx FIFO transfers */ ntxd = ssi_performtx(priv); |