Add polling routine XK-AUDIO-216-MC
Posted: Tue Jan 16, 2018 6:21 pm
As I understand, there are mainly two functions that needs to be modified for custom designs, AudioHwInit() and AudioHwConfig(). These functions are only called by the framework exactly when they are needed.
However suppose I want to add an additional function to audiohw.xc. A custom polling routine (polls a port and audio circuits). This routine should periodically be called (e.g. every 200 ms) and will also use the same I2C bus as the above functions (thus be threadsafe).
Does anyone have a suggestion how this could be added (e,g, with a timer)? Is there already an example that I'm missing? Any suggestion is appreciated as I'm a bit stuck (and new) on this....
Best regard /J
However suppose I want to add an additional function to audiohw.xc. A custom polling routine (polls a port and audio circuits). This routine should periodically be called (e.g. every 200 ms) and will also use the same I2C bus as the above functions (thus be threadsafe).
Does anyone have a suggestion how this could be added (e,g, with a timer)? Is there already an example that I'm missing? Any suggestion is appreciated as I'm a bit stuck (and new) on this....
Best regard /J