diff --git a/drivers/hdc1000/hdc1000.c b/drivers/hdc1000/hdc1000.c index 8030e312f7..ea037ae405 100644 --- a/drivers/hdc1000/hdc1000.c +++ b/drivers/hdc1000/hdc1000.c @@ -130,7 +130,7 @@ int hdc1000_read(const hdc1000_t *dev, int16_t *temp, int16_t *hum) if (hdc1000_trigger_conversion(dev) != HDC1000_OK) { return HDC1000_BUSERR; } - xtimer_usleep(HDC1000_CONVERSION_TIME); + xtimer_usleep(CONFIG_HDC1000_CONVERSION_TIME); return hdc1000_get_results(dev, temp, hum); } diff --git a/drivers/hdc1000/include/hdc1000_params.h b/drivers/hdc1000/include/hdc1000_params.h index 52257cfd43..98c9c26529 100644 --- a/drivers/hdc1000/include/hdc1000_params.h +++ b/drivers/hdc1000/include/hdc1000_params.h @@ -35,7 +35,7 @@ extern "C" { #define HDC1000_PARAM_I2C I2C_DEV(0) #endif #ifndef HDC1000_PARAM_ADDR -#define HDC1000_PARAM_ADDR (HDC1000_I2C_ADDRESS) +#define HDC1000_PARAM_ADDR (CONFIG_HDC1000_I2C_ADDRESS) #endif #ifndef HDC1000_PARAM_RES #define HDC1000_PARAM_RES HDC1000_14BIT diff --git a/drivers/include/hdc1000.h b/drivers/include/hdc1000.h index a5c48b7441..3b2fc282d7 100644 --- a/drivers/include/hdc1000.h +++ b/drivers/include/hdc1000.h @@ -21,7 +21,7 @@ * simplified `hdc1000_read()` function, or the conversion can be triggered * manually using the `hdc1000_trigger_conversion()` and `hdc1000_get_results()` * functions sequentially. If using the second method, on must wait at least - * `HDC1000_CONVERSION_TIME` between triggering the conversion and reading the + * `CONFIG_HDC1000_CONVERSION_TIME` between triggering the conversion and reading the * results. * * @note The driver does currently not support using the devices heating @@ -62,8 +62,8 @@ extern "C" * The address value depends on the state of ADR0 and ADR1 Pins * For more details refer Section 8.5.1 of datasheet */ -#ifndef HDC1000_I2C_ADDRESS -#define HDC1000_I2C_ADDRESS (0x43) +#ifndef CONFIG_HDC1000_I2C_ADDRESS +#define CONFIG_HDC1000_I2C_ADDRESS (0x43) #endif /** @@ -73,8 +73,8 @@ extern "C" * conversions (worst case) to allow for timer imprecision: * (convert temp + convert hum) * 2 -> (6.5ms + 6.5ms) * 2 := 26ms. */ -#ifndef HDC1000_CONVERSION_TIME -#define HDC1000_CONVERSION_TIME (26000) +#ifndef CONFIG_HDC1000_CONVERSION_TIME +#define CONFIG_HDC1000_CONVERSION_TIME (26000) #endif /** @} */ @@ -129,7 +129,7 @@ int hdc1000_init(hdc1000_t *dev, const hdc1000_params_t *params); * @brief Trigger a new conversion * * After the conversion is triggered, one has to wait - * @ref HDC1000_CONVERSION_TIME us until the results can be read using + * @ref CONFIG_HDC1000_CONVERSION_TIME us until the results can be read using * @ref hdc1000_get_results(). * * @param[in] dev device descriptor of sensor