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

sensor: bmp388: Add I2C-base or SPI-base interface in build time



move DT_DRV_COMPAT to bmp388.h. so that can be decide which
interface to use.

define struct bmp388_bus_io interface bmp388_i2c.c and bmp388_spi.c.

redefined bus operation interface in bmp388.c, this allow the driver
to decide which interface to use during construction

Signed-off-by: default avatarWeiwei Guo <guoweiwei@syriusrobotics.com>
parent 9d7c51e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment