public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "ariga masahiro" <ariga@link-lab.co.jp>
To: "Andrew Lunn" <andrew@lunn.ch>
Cc: <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] Question about interrupt trigger mode.
Date: Fri, 28 Sep 2007 10:06:00 -0000	[thread overview]
Message-ID: <001501c801b7$2de8bed0$1c0110ac@ariga> (raw)

Hi,

My target uses SMSC LAN91C111 chip,CPU is SH7709S.
As ethernet interrupt,uses IRQ3 line.
I build "net" template,eCos source is updated by CVS checkout.

Please help me next 2 questions.
(1)
When IRQ3 aserted,enter into ISR routine,so far so good.
But although IRQ3 line continually hold assert-state(LOW),
and never chang to OFF(HIGH)state,ISR is repeatedly entered.

My question is,if interrupt trigger mode is setted edge trigger mode,
ISR routine is only entered once,isn't it ?

I assume trigger mode is setted by next routine.
packages\kernel\current\src\intr\intr.cxx     HAL_INTERRUPT_CONFIGURE( 
vector, level, up );
or Cyg_Interrupt::configure_interrupt routine.

I checked source but never found using HAL_INTERRUPT_CONFIGURE or 
Cyg_Interrupt::configure_interrupt.
Is it only setted by default ?

I like to quarantee it is working egde trigger mode.
Could I know by cheching global area ?
How should I do to be confirmed that ?

(2)
After  IRQ3 was aserted,does eCos's SMSC LAN91C111 driver delete factors
causing IRQ3 toward LAN chip ?
If it does,and it is possible,please let me know where it is done ?
Or is it user's responsibility to do in ISR ?

Please enlighten me.

Masahiro Ariga


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

             reply	other threads:[~2007-09-28 10:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-28 10:06 ariga masahiro [this message]
2007-10-01  5:01 ` [ECOS] Not working lan91cxx_sc drv ariga masahiro
2007-10-02  1:18   ` ariga masahiro
2007-10-02  4:46     ` ariga masahiro
2007-10-02  5:27       ` ariga masahiro
2007-10-02  7:08         ` ariga masahiro
2007-10-02 10:45           ` ariga masahiro
2007-10-11  9:01           ` [ECOS] Not enter VSR routine when lan91cxx_start executed ariga masahiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001501c801b7$2de8bed0$1c0110ac@ariga' \
    --to=ariga@link-lab.co.jp \
    --cc=andrew@lunn.ch \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).