Using struct device from outside context in driver #driver #pdm #nrf52832
Frederik David Damsgaard Popp
Hello Zephyr Development Community
I am currently working on implementing the Nordic NRFX PDM driver into Zephyr.
However with this driver, I am not quite sure how to properly gain access to the device struct for the driver, in a function called from the wrong context.
Just for now, to get it working, I have a global pointer to the device struct, which I obviously would like to avoid, but is working since there can only be one instance of the driver.
I took a look at some other nrfx drivers:
So my question is - which would be the correct way of accessing this device structure from a different context?
|1 - 1 of 1|