zephyr/drivers/sensor/bmm150
Weiwei Guo 08ece57b9e sensor: bmm150: Add I2C-base or SPI-base interface in build time
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>
2023-04-11 11:26:47 +02:00
..
bmm150.c sensor: bmm150: Add I2C-base or SPI-base interface in build time 2023-04-11 11:26:47 +02:00
bmm150.h sensor: bmm150: Add I2C-base or SPI-base interface in build time 2023-04-11 11:26:47 +02:00
bmm150_i2c.c sensor: bmm150: Add I2C-base or SPI-base interface in build time 2023-04-11 11:26:47 +02:00
bmm150_spi.c sensor: bmm150: Add I2C-base or SPI-base interface in build time 2023-04-11 11:26:47 +02:00
CMakeLists.txt sensor: bmm150: Add I2C-base or SPI-base interface in build time 2023-04-11 11:26:47 +02:00
Kconfig drivers: sensor: Convert Kconfig bus 'depends on' to 'select' 2022-08-08 06:58:18 +01:00