Skip to content
Commit 08ece57b authored by Weiwei Guo's avatar Weiwei Guo Committed by Carles Cufí
Browse files

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: default avatarWeiwei Guo <guoweiwei@syriusrobotics.com>
parent 012ae578
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment