I want to use the GP Timer Service APIs to configure a timer in SC589. I want this timer to operate independently (free run) without any callback ISR.
However if I use adi_tmr_Open() API to open the timer - I find that I must supply a callback function address.
I tried using this API to open the timer with a NULL function pointer, like this:
adi_tmr_Open(TIMER_NUMBER, TimerMemory, ADI_TMR_MEMORY, NULL, NULL, &ghTimer);
This compiles OK but at runtime this function returns an error. I debugged the code and found that this function will not allow a NULL specification for the callback function pointer.
So it seems I must specify a function for this API call.
But I don't want to create an ISR callback function for this timer.
How can I open the timer for configuration (using the GP Timer Service APIs) without any callback ISR function?
Thanks!