diff options
author | 4pplet <4pplet@protonmail.com> | 2020-11-14 10:23:41 +0100 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-11-29 21:12:26 -0500 |
commit | 924a598920cf5894970bb98ae825663640d32bd7 (patch) | |
tree | 7892c3b8b47d3cb5834b7be202a41e0865349677 /app/drivers/zephyr | |
parent | 3bf770a3648cd8f6e29afba36b861729920e5e40 (diff) |
Updated function calls with missing reference. GPIO missing.
Updated function calls with missing reference. GPIO missing.
To my understanding:
DT_INST_GPIO_PIN() should be called instead if DT_INST_PIN()
DT_INST_GPIO_FLAGS() should be called instead if DT_INST_GPIO_FLAGS()
Current implementation does not compile when using control pin.
Diffstat (limited to 'app/drivers/zephyr')
-rw-r--r-- | app/drivers/zephyr/battery_voltage_divider.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/drivers/zephyr/battery_voltage_divider.c b/app/drivers/zephyr/battery_voltage_divider.c index b94e2a2..d634dfd 100644 --- a/app/drivers/zephyr/battery_voltage_divider.c +++ b/app/drivers/zephyr/battery_voltage_divider.c @@ -205,8 +205,8 @@ static const struct bvd_config bvd_cfg = { .power_gpios = { DT_INST_GPIO_LABEL(0, power_gpios), - DT_INST_PIN(0, power_gpios), - DT_INST_FLAGS(0, power_gpios), + DT_INST_GPIO_PIN(0, power_gpios), + DT_INST_GPIO_FLAGS(0, power_gpios), }, #endif .output_ohm = DT_INST_PROP(0, output_ohms), |