I am implementing the interrupt handler for mmwavelink as per this thread: AWR1243: mmwave link API interrupt function implementation - Sensors forum - Sensors - TI E2E support forums
Specifically this block of code:
RL_P_EVENT_HANDLER radarGpioIntrHandler ; int rlsRegisterInterruptHandler(unsigned char deviceIndex, RL_P_EVENT_HANDLER InterruptHdl , void* pValue) { radarGpioIntrHandler = pHandler; //Assuming single chip connection } // This is interrupt handler which is registered with GPIO (connect to HostIRQ line) void GpioInterruptHandler(uint32 arg) { // check if this GPIO is high // clear the interrupt //invoke lastly registered interrupt handler of mmwavelink if (radarGpioIntrHandler != NULL) { /* Call the radar link function registered with the device * index. (single chip : i =0) */ radarGpioIntrHandler(i, NULL); // device index for single chip can be known in advanced as there is only HOSTIRQ connected. // In case of multiple device connected, application needs to check which HostIRQ is raised high and mapped to corresponding AWR1243 device index. } }
Upon executing my application the radarGpioIntrHandler is NULL so radarGpioIntrHandler(0,NULL) is never called.
My question: why is radarGpioIntrHandler NULL and how can I work around this?