08ece57b9e
move DT_DRV_COMPAT to bmm150.h. so that can be decide which interface to use. define struct bmm150_bus_io interface for bmm150_i2c.c and bmm150_spi.c in bmm150.h. redefined bus operation interface in bmm150.c, this allow the driver to decide which interface to use during construction. Signed-off-by: Weiwei Guo <guoweiwei@syriusrobotics.com> |
||
---|---|---|
.. | ||
bmm150.c | ||
bmm150.h | ||
bmm150_i2c.c | ||
bmm150_spi.c | ||
CMakeLists.txt | ||
Kconfig |