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]

Re: serial line ISR problem -- again:(


Piotr Trojanek wrote:

[ ... ]
Please, help, what do I do wrong?
[ ... ]
cyg_uint32 isr(
	cyg_vector_t vector,
	cyg_addrword_t data)
{
	/* do the work... */
	int i;
	c++;

	/* reenable IRQ on UART */
	for (i = 0; i < 8; i++)
		HAL_READ_UINT8(COM_ADDR + i, ier);
	cyg_interrupt_acknowledge( vector );
	return CYG_ISR_HANDLED;
}
[ ... ]

If you want your DSR to run, I believe you have to
return CYG_ISR_HANDLED | CYG_ISR_CALL_DSR;
here. This may be your problem.
--
--------------------------------------------------------------------
|     Eric Doenges              |     DynaPel Laboratories GmbH    |
|     Tel: +49 89 962428 23     |     Fraunhoferstrasse 9/2        |
|     Fax: +49 89 962428 90     |     D - 85737 Ismaning, Germany  |
--------------------------------------------------------------------


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


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