[riot-notifications] [RIOT-OS/RIOT] cpu/stm32/gpio: do not change pin state when switching to output (#8557)

Peter Kietzmann notifications at github.com
Tue Jul 30 17:54:33 CEST 2019

PeterKietzmann commented on this pull request.

> @@ -87,6 +87,8 @@ int gpio_init(gpio_t pin, gpio_mode_t mode)
     periph_clk_en(AHB1, (RCC_AHB1ENR_GPIOAEN << _port_num(pin)));
+    /* do not touch actual line state */
+    _port(pin)->ODR = _port(pin)->IDR;

@niziak still around?

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190730/c03447f8/attachment.htm>

More information about the notifications mailing list