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: Weiwei Guo <guoweiwei@syriusrobotics.com> |
||
|---|---|---|
| .. | ||
| bmp388_i2c.c | ||
| bmp388_spi.c | ||
| bmp388_trigger.c | ||
| bmp388.c | ||
| bmp388.h | ||
| CMakeLists.txt | ||
| Kconfig | ||