[riot-notifications] [RIOT-OS/RIOT] cpu/qn908x: Implement blocking SPI support (#15689)

iosabi notifications at github.com
Sun Jan 24 19:41:53 CET 2021


@iosabi commented on this pull request.



> +        }
+    }
+    _spi_wait_txempty(spi_bus);
+}
+
+void spi_transfer_bytes(spi_t bus, spi_cs_t cs, bool cont,
+                        const void *out, void *in, size_t len)
+{
+    spi_pending_transfer_t tr;
+
+    _spi_config_transfer(&tr, cs, cont, out, in, len);
+
+    /* At least one of input or one output buffer is given */
+    assert(bus < SPI_NUMOF);
+
+    if (!GPIO_T_IS_HWCS(cs)) {

The gpio_set() that matches this gpio_clear() is in this function, that's why I placed it here instead of `_spi_config_transfer`.

-- 
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/15689#discussion_r563332273
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210124/150e772d/attachment.htm>


More information about the notifications mailing list