when i was in check ADSP-BF70x processor API manual , in adi_gpio_Init() function call after needs to allocate memory space for GPIO callback function, I don't understand , please help me! thank you!
I have asked software team to look in to this, we will get back to you.
The SSL/DD functions do not perform dynamic memory allocation. All memory required by the services and drivers, whether for data buffers or keeping track of the processor state, is provided by the application through APIs such as adi_xxx_Init() and adi_xxx_Open().
In the case of GPIO callbacks, the callback function is registered through the adi_gpio_RegisterCallback() function, where you pass not only the function to be called, but also parameter data for the function. This info needs to be stored somewhere, so that the GPIO service can call the callback function and pass it that parameter data, when the interrupt occurs. That is why you need to provide some memory during adi_gpio_Init() - you're providing the space to store the callback info, for when it's needed during the interrupt.
Thank you!,I see!
Retrieving data ...