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 hts221 {
	@IncludeExport(path="drivers/sensors", target_name="hts221.h")
	source "hts221.h"

	source "hts221.c"
}

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

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

	source "hts221_spi.c"
}
*/
