package embox.driver.sensors

/* TODO There can be both I2C and SPI versions in one config,
 * this must be removed after we will add sensors API. */
abstract module lsm6dsl {
	@IncludeExport(path="drivers/sensors", target_name="lsm6dsl.h")
	source "lsm6dsl.h"

	source "lsm6dsl.c"
}

static module lsm6dsl_i2c extends lsm6dsl {
	option string log_level="LOG_ERR"
	option number i2c_bus = 0
	source "lsm6dsl_i2c.c"
}

/* not tested now!
static module lsm6dsl_spi extends lsm6dsl {
	option string log_level="LOG_ERR"
	option number spi_bus = 0

	source "lsm6dsl_spi.c"
}
*/
