[ECOS] Serial interrupts on the AEB
Gary Thomas
gthomas@ecoscentric.com
Fri Dec 13 05:47:00 GMT 2002
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
More information about the Ecos-discuss
mailing list