public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: li hui <lhbyron@yahoo.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] question about interrupt!
Date: Thu, 15 Nov 2001 08:08:00 -0000	[thread overview]
Message-ID: <20011127012323.61860.qmail@web14703.mail.yahoo.com> (raw)

I try to write a mouse driver for ecos(i386).I meet a
problem, I can't make my interrupt routine response
the interrupt.my code is bleow,please give me some
advice.

#define MOUSE_BASE 0x300
#define MOUSE_IRQ  CYGNUM_HAL_INTERRUPT_COM2  //35
static cyg_uint32  isr(cyg_vector_t
vector,cyg_addrword_t data)
{
	return 1;
}

static int mouse_lookup()
{
............
cyg_drv_interrupt_create ( MOUSE_IRQ, 99, 0, isr,
mouse_interupt, &interupt_handle, &interupt_obj);
cyg_drv_interrupt_attach (interupt_handle);
cyg_drv_interrupt_unmask (MOUSE_IRQ);
..............
}
static void mouse_interupt(cyg_vector_t vector,
cyg_ucount32 count, cyg_addrword_t data)
{
   .............
}

static int mouse_read(cyg_io_handle_t handle,void
*buf,cyg_uint32 *len)
{
.......................
}

I set breakpoint in my DSR and ISR routines,but it
never reach the breakpoint!
I also tried to use timer interrupt(32) as interrupt
vector,it doesn't work too.


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

             reply	other threads:[~2001-11-27  1:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-15  8:08 li hui [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-07-05  3:01 [ECOS] Question about Interrupt Tony Ko

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=20011127012323.61860.qmail@web14703.mail.yahoo.com \
    --to=lhbyron@yahoo.com \
    --cc=ecos-discuss@sources.redhat.com \
    /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).