boards/arm/96b_wistrio: fix GPIO initialization code
GPIO_OUTPUT_INIT_HIGH and GPIO_OUTPUT_INIT_LOW don't initialize pin directions. Use correct initialization values. Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
This commit is contained in:
parent
93f20d7a7a
commit
b68730d02f
|
@ -25,9 +25,9 @@ static int rf_init(const struct device *dev)
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
(void)gpio_pin_configure_dt(&rf1, GPIO_OUTPUT_INIT_HIGH);
|
||||
(void)gpio_pin_configure_dt(&rf2, GPIO_OUTPUT_INIT_HIGH);
|
||||
(void)gpio_pin_configure_dt(&rf3, GPIO_OUTPUT_INIT_LOW);
|
||||
(void)gpio_pin_configure_dt(&rf1, GPIO_OUTPUT_HIGH);
|
||||
(void)gpio_pin_configure_dt(&rf2, GPIO_OUTPUT_HIGH);
|
||||
(void)gpio_pin_configure_dt(&rf3, GPIO_OUTPUT_LOW);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue