[riot-notifications] [RIOT-OS/RIOT] TI CC3200 SimpleLink RIOT support (#11866)

benpicco notifications at github.com
Mon Sep 16 22:56:30 CEST 2019


benpicco commented on this pull request.



> +
+    return 0;
+}
+#endif
+
+/**
+ * @brief gpio_write writes to a GPIO pin dev (external) the value value
+ *
+ * @param dev external pin
+ * @param value value to be written (will be masked)
+ */
+void gpio_write(gpio_t dev, int value)
+{
+    uint8_t port           = gpio_port_num(dev);
+    unsigned char ipin     = gpio_pin_mask(dev);
+    unsigned long portAddr = (unsigned long)gpio_port_by_num(port);

Just use `uint32_t` and `uint8_t` everywhere for consistency. 

-- 
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/11866#pullrequestreview-288895753
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190916/7a2cf463/attachment.htm>


More information about the notifications mailing list