Re: Sharing a driver between similar devices
Bolivar, Marti
Hi Michael,
"Michael Hope via lists.zephyrproject.org" <michaelh=juju.nz@lists.zephyrproject.org> writes: Hi there. I'm porting Zephyr to the Arduino Nano 33 IOT. The board has aHave you tried to set some state in the config structure based on the value of DT_NODE_HAS_COMPAT(DT_DRV_INST(your_instance_number), some_compat)? E.g. setting the WHO_AM_I in your config struct based on this, and using that in your init functions to disambiguate. Thanks, MartÃ
|
|