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

benpicco notifications at github.com
Mon Jul 29 14:49:26 CEST 2019


benpicco commented on this pull request.



> + */
+#define PAD_CONFIG_REG(pin) \
+    (*((volatile unsigned long *)((gpio_pin << 2) + PAD_CONFIG_BASE)))
+
+/**
+ * @brief gpio base addresses
+ *
+ */
+static unsigned long ports[] = { GPIOA0_BASE, GPIOA1_BASE, GPIOA2_BASE,
+                                 GPIOA3_BASE, GPIOA4_BASE };
+
+/**
+ * @brief pin to GPIO pin numbers mappings
+ *
+ */
+static const unsigned long pin_to_gpio_num[64] = {

Does this have to be an `unsigned long`? All the values fit into an `uint8_t`.

-- 
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-267758488
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190729/225ebde7/attachment.htm>


More information about the notifications mailing list