[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 May 28 20:10:54 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)));
 #endif
 
+    /* do not touch actual line state */
+    _port(pin)->ODR = _port(pin)->IDR;

Ok just ping me when you're done

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/8557#discussion_r288235300
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190528/0f7b00c7/attachment.html>


More information about the notifications mailing list