This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: serial line ISR problem -- again:(
- From: Eric Doenges <Eric dot Doenges at DynaPel dot com>
- To: Piotr Trojanek <ptroja at elproma dot com dot pl>
- Cc: ecos-discuss <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 09 Sep 2003 09:46:39 +0200
- Subject: Re: [ECOS] serial line ISR problem -- again:(
- References: <20030908171329.GA836@elproma.com.pl>
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