1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/sht1x: document parameters

This commit is contained in:
Marian Buschsieweke 2022-09-16 11:12:10 +02:00
parent b992b73087
commit 31b40a863b
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -32,15 +32,29 @@ extern "C" {
* @{
*/
#ifndef SHT1X_PARAM_CLK
/**
* @brief SHT1x the clock pin
*/
#define SHT1X_PARAM_CLK (GPIO_PIN(1, 25))
#endif
#ifndef SHT1X_PARAM_DATA
/**
* @brief SHT1x the data pin
*/
#define SHT1X_PARAM_DATA (GPIO_PIN(1, 26))
#endif
#ifndef SHT1X_PARAM_VDD
/**
* @brief SHT1x the supply voltage
*
* @see sht1x_vdd_t
*/
#define SHT1X_PARAM_VDD (SHT1X_VDD_3_5V)
#endif
#ifndef SHT1X_PARAMS
/**
* @brief The initialization parameters for the SHT1x driver
*/
#define SHT1X_PARAMS { .clk = SHT1X_PARAM_CLK, \
.data = SHT1X_PARAM_DATA, \
.vdd = SHT1X_PARAM_VDD }