[riot-notifications] [RIOT-OS/RIOT] nrf52: Implement EasyDMA-based SPI peripheral implemenation (#14057)

benpicco notifications at github.com
Tue May 12 14:32:27 CEST 2020


@benpicco commented on this pull request.



> +static spi_twi_irq_cb_t _irq[SPI_TWI_IRQ_NUMOF];
+static void *_irq_arg[SPI_TWI_IRQ_NUMOF];
+
+/* I2C and SPI share peripheral addresses */
+static size_t _spi_dev2num(void *dev)
+{
+    if (dev == NRF_SPIM0) {
+        return 0;
+    }
+    else if (dev == NRF_SPIM1) {
+        return 1;
+    }
+    else if (dev == NRF_SPIM2) {
+        return 2;
+    }
+#ifdef CPU_MODEL_NRF52840XXAA

```suggestion
#if SPI_TWI_IRQ_NUMOF > 3
```

-- 
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/14057#pullrequestreview-409991852
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200512/f31da7e2/attachment.htm>


More information about the notifications mailing list