You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/04/19 10:05:29 UTC

[GitHub] utzig commented on a change in pull request #1003: STM32: common hal_gpio

utzig commented on a change in pull request #1003: STM32: common hal_gpio
URL: https://github.com/apache/mynewt-core/pull/1003#discussion_r182695896
 
 

 ##########
 File path: hw/mcu/stm/stm32_common/src/hal_gpio.c
 ##########
 @@ -479,8 +524,16 @@ int hal_gpio_init_out(int pin, int val)
     cfg.Pin = GPIO_MASK(pin);
     cfg.Mode = GPIO_MODE_OUTPUT_PP;
     cfg.Pull = GPIO_NOPULL;
+#if (defined GPIO_SPEED_FREQ_VERY_HIGH)
 
 Review comment:
   while this should be OK, it would be better to write it the standard way: `#if defined(x)`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services