Leon 2 UART interrupt handler

Joel Sherrill joel.sherrill at OARcorp.com
Wed Mar 12 20:31:38 UTC 2008


jfa at reexsa.com wrote:
>
>
> Hi all,
>
> I am new to the list, and I don't know if this question has already 
> being answered. I have tried to look for them in the documentation but 
> I haven been able to find them.
> I am trying to make RTEMS run on a leon2 processor. Everything seems 
> to work fine but the interrupts. If I take a look to the assembly 
> code, there are no routines to take handle the UART's interrupts. Also 
> when I look at interrupt vectors in a simulator, there are no 
> interrupt vectors at addresses 0x40000120 and 0x40000130 which are 
> where the processor jumps when it gets an interrupt from UART 1 or UART 2.
> My questions are how do I enable the interrupt vectors? Where in the 
> source code are the routines to handle the interrupts?
>
It is dynamically placed there when the console driver initializes
itself and registers those devices.  The driver on this BSP defaults
to polled mode though so that is why you never see it.  You need
to configure with CONSOLE_USE_INTERRUPTS=1 on the configure
command line.

> Thanks in advance,
>
> Jose


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list