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:
Filip Kokosinski 2022-05-26 13:17:35 +02:00 committed by Marti Bolivar
parent 93f20d7a7a
commit b68730d02f

View file

@ -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;
}