Hi,
I have registered my ADC SS0 interrupt as below:
ADC0_SS0_interrupt = Hwi_create(ADC0_Sequence_0_interrupt, ADC0_Seq0_Int_Handler, &ADC0_SS0_Params, NULL);
if(ADC0_SS0_interrupt == NULL) {
retValue = FAILURE;
}
and interrupt handler is as below:
void ADC0_Seq1_Int_Handler(UArg arg) {
ADC_MAIL_BOX_t msgA;
uint32_t tempBuf[SS1_FIFO_depth];
ADCIntClear(ADC0_BASE, SAMPLE_SEQUENCER_1);
ADCSequenceDataGet(ADC0_BASE, SAMPLE_SEQUENCER_1, tempBuf);
msgA.data = tempBuf[0];
}
I am receiving interrupt and everything is working fine.
I want to do an improvement on this by passing an argument to interrupt handler.
UArg is defined as
typedef xdc_UArg UArg; // line 228
in “c:\ti\xdctools_3_25_04_88\packages\xdc\std.h”
which in turn defined as typedef unsigned int xdc_UArg;
My requirement is to pass pointer to a struct ( or void *) to interrupt handler?
But from above definition of UArg, I think it is not possible to do this. Is my understanding correct?
Regards
Srinivasa