cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
7,165 Views
Registered: ‎12-06-2007

Why Need To Use XIntc_RegisterHandler() ?

Good evening sir,

 

     I have one question

 

XIntc_RegisterHandler(XPAR_XPS_INTC_0_BASEADDR,

                                             XPAR_XPS_INTC_0_RS232_INTERRUPT_INTR,

                                                   (XInterruptHandler)uart_int_handler,

                                                        (void *)XPAR_RS232_BASEADDR);

 

based on the above , what is the purpose of " (XInterruptHandler)uart_int_handler " ? Why we should write this function?

 

 

Thank you

0 Kudos
5 Replies
Highlighted
Visitor
Visitor
7,141 Views
Registered: ‎11-02-2008

Re: Why Need To Use XIntc_RegisterHandler() ?

Please go thro the EST- Manual - Interrupt Management

 

Tom

0 Kudos
Highlighted
Explorer
Explorer
7,133 Views
Registered: ‎12-06-2007

Re: Why Need To Use XIntc_RegisterHandler() ?

Good evening,
     Previously the uart was created in a polling mode (Original\ML401\TestApp_Peripheral\src\Code_Header\xuartlite_send_or_recv.c), which only receive 16 bytes of data.
     I need to receive more than 16 bytes so I did an Interrupt mode Uart (Modified\ML401\TestApp_Peripheral\src\Code_Header\xuartlite_send_or_recv.c). I followed some examples (References\....).
    Because I am not familiar with interrupt , I need someone to check my coding flow of  the UART (xuartlite_send_or_recv.c). I fear I missed out anything especially on the line 239 onwards.
   Did I miss out anything?
    Please reply to me as soon as possible. 
Thank you
0 Kudos
Highlighted
Explorer
Explorer
7,132 Views
Registered: ‎12-06-2007

Re: Why Need To Use XIntc_RegisterHandler() ?

Based on above , this is the Original.rar file
0 Kudos
Highlighted
Explorer
Explorer
7,131 Views
Registered: ‎12-06-2007

Re: Why Need To Use XIntc_RegisterHandler() ?

This is the referecences that I followed.
0 Kudos
Highlighted
Explorer
Explorer
7,130 Views
Registered: ‎12-06-2007

Re: Why Need To Use XIntc_RegisterHandler() ?

Good evening sir,
    It is a simple problem. I had done the Uart Interrupt Mode for xuartlite_send_or_recv.c only (in the Modified.rar) , without any error . Can you pls check to find that I missed anything?
    I have some doubts on ;-
line (39 till 47)
=> I not sure whether this function needed
line (51 & 132)
=> i am not sure this function flowing. Is it correct?
line (76)
=> I am not sure if the function arguments are correct.
line (97)
=> I am not sure whether I need this function , because it related to line (239)
   If got any error or anything Imissed out ,pls inform me . I will do research on it and find the solution.
Thank you sir.

Tags (1)
0 Kudos