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

benpicco notifications at github.com
Mon May 18 18:50:43 CEST 2020


@benpicco commented on this pull request.



> +    dev(bus)->ENABLE = SPIM_ENABLE_ENABLE_Enabled;
+
+    return SPI_OK;
+}
+
+void spi_release(spi_t bus)
+{
+    /* power off everything */
+    dev(bus)->ENABLE = 0;
+    mutex_unlock(&locks[bus]);
+}
+
+static size_t _transfer(spi_t bus, const uint8_t *out_buf, uint8_t *in_buf,
+                      size_t remaining_len)
+{
+    uint8_t transfer_len = remaining_len > UINT8_MAX ? UINT8_MAX : remaining_len;

Oh sorry this is not equivalent - disregard my comment. 

-- 
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#discussion_r426763951
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200518/5a3d1211/attachment.htm>


More information about the notifications mailing list