zephyrproject-rtos / gsoc-2022-arduino-core

Arduino Core Zephyr Module (GSoC 2022 Project)
Apache License 2.0
44 stars 11 forks source link

libraries: Wire: Instantiate Wire following dts configuration #62

Closed soburi closed 1 year ago

soburi commented 1 year ago

Instaintiate Wire with i2c device that defined in 'i2cs' array under zephyr,user node. If 'i2cs' array is not defined, tries to instantiate with i2c device that labeled as 'arduino_i2c'.

As a result of apply new rule, the i2c_dev that declared in pinmap.h is no more used, remove it.

DhruvaG2000 commented 1 year ago

@soburi kindly rebase and resolve conflicts. Thanks

soburi commented 1 year ago

@DhruvaG2000 Update done.

DhruvaG2000 commented 1 year ago

Merged, Thanks!