This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problem about interupt


I try to write a mouse driver on ecos for i386 target.
I set interupt vector as 5,and use DSR to response
interupt.But to my surprise, it seem that DSR routine
dosen't response the interupt at all. That's why?
my program is below:

#define MOUSE_BASE 0x300
#define MOUSE_IRQ  5
........
static int mouse_lookup()
{
.............
printf("enter init\n");
cyg_drv_interrupt_create ( MOUSE_IRQ, 99, 0, isr,
mouse_interupt, &interupt_handle, &interupt_obj);
cyg_drv_interrupt_attach (interupt_handle);
..........
}
static void mouse_interupt(cyg_vector_t vector,
cyg_ucount32 count, cyg_addrword_t data)
{
printf("enter DSR\n");
.........
}
static cyg_uint32  isr(cyg_vector_t
vector,cyg_addrword_t data)
{
	printf("enter isr\n");
	return 1;
}

When I run the program above, it print neither "enter
dsr" nor "enter isr"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]