[riot-notifications] [RIOT-OS/RIOT] cpu/stm32l1: optimize power consumption (#11359)

Alexandre Abadie notifications at github.com
Mon Apr 8 21:28:22 CEST 2019


aabadie commented on this pull request.



> +                case 1:
+                    port->MODER = 0xFFFFFEBF;
+                    break;
+                default:
+                    port->MODER = 0xFFFFFFFF;
+                    break;
+            }
+#else
+            port->MODER = 0xFFFFFFFF;
+#endif
+        }
+        else {
+            break;
+        }
+    /* restore GPIO clock */
+    periph_clk_en(AHB, ((RCC->AHBENR & ~((uint32_t)0xFF)) | ahb_gpio_clocks));

Shouldn't this be outside of the for loop ?

-- 
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/11359#pullrequestreview-224041876
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190408/52981b2f/attachment-0001.html>


More information about the notifications mailing list