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

iosabi notifications at github.com
Mon Jan 25 04:35:46 CET 2021


@iosabi commented on this pull request.



> +only implements the Controller mode, the hardware is capable of operating in
+Peripheral mode as well so we use the COPI/CIPO names.
+
+### SPI configuration example (for periph_conf.h) ###
+
+The following example uses only one hardware CS (number 0) and leaves the rest
+unused. Check the user manual for the full list of CS pins available.
+
+    static const spi_conf_t spi_config[] = {
+        {
+            .dev            = SPI0,
+            .copi_pin       = GPIO_PIN(PORT_A, 4),
+            .cipo_pin       = GPIO_PIN(PORT_A, 5),
+            .clk_pin        = GPIO_PIN(PORT_A, 30),
+            .cs_pin         = {
+                GPIO_PIN(PORT_A, 3),

I documented the use of HWCS in the doc.txt now.

-- 
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_r563446107
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210124/41d1c0a3/attachment.htm>


More information about the notifications mailing list