J
jmariano
Guest
Hi everybody,
Sorry if this is a basic question.
I'm trying to implement a interrupt handler for the UARTLite in my
mBlaze system. The chain is: mBlaze->IntCtrl->Uart. The IntCtrl is to
add future interrupt sources. I'm using as an example the code from
XAPP808 - FPGA Motor Control Reference Design by Craig Hackney.
What I don't understand is the actual handler structure. It looks like
this:
void serialCommRecv (void *param, unsigned int byteCount)
{
do
{
// do something
} while ((byteCount = XUartLite_Recv(( XUartLite * ) param,
charBuffer, 1)));
}
I don't understand what are the handler function arguments values when
the function is called and what is the purpose of using arguments in a
handler? Can anyone explain that to me?
Tanks,
mariano
Sorry if this is a basic question.
I'm trying to implement a interrupt handler for the UARTLite in my
mBlaze system. The chain is: mBlaze->IntCtrl->Uart. The IntCtrl is to
add future interrupt sources. I'm using as an example the code from
XAPP808 - FPGA Motor Control Reference Design by Craig Hackney.
What I don't understand is the actual handler structure. It looks like
this:
void serialCommRecv (void *param, unsigned int byteCount)
{
do
{
// do something
} while ((byteCount = XUartLite_Recv(( XUartLite * ) param,
charBuffer, 1)));
}
I don't understand what are the handler function arguments values when
the function is called and what is the purpose of using arguments in a
handler? Can anyone explain that to me?
Tanks,
mariano