This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Serial interrupts on the AEB
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: "Gareth ." <the_african at hotmail dot com>
- Cc: harri dot siirtola at vtt dot fi,eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 13 Dec 2002 06:47:23 -0700
- Subject: Re: [ECOS] Serial interrupts on the AEB
- References: <F26AW4eE2FGwQ21ju2i00020a06@hotmail.com>
On Fri, 2002-12-13 at 03:41, Gareth . wrote:
> > you still have to enable UART interrupts by setting bits in its >
> >interrupt enable register. Refer to the datasheet for how to do this.
>
> I have had a go at this. I have set the Interrupt Enable Register for
> UART0, UART1 and UART2. I'm not entirely sure which one is the serial line.
> This has no effect though, my ISR function is still not called when data
> arrives on the serial line.
>
> I thought stuff like this would be abstracted away by ecos. Isn't that the
> point of using an OS, to protect you from having to mess with the hardware
> in such a way? I thought there would be an ecos function like
> make_uart_interrupts_work(). Or is it because this is so hardware specific
> that it is still left up to you to do manually.
There are such a set of functions - it's the serial driver :-)
>
> Gary Thomas mentioned using the serial driver to do all this. Can anyone
> point me at some example code to get me started?
Try looking at the serial sample code, found in .../io/serial/current/tests.
Or, alternatively, just use standard POSIX I/O.
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
http://www.ecoscentric.com/ |
email: <gthomas@ecoscentric.com> |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss