[riot-notifications] [RIOT-OS/RIOT] clicker, wifire: Add SPI peripheral support (#7383)

Fran├žois Berder notifications at github.com
Sat Sep 30 17:03:56 CEST 2017


francois-berder commented on this pull request.



> +            /* Wait until TX FIFO is empty */
+            while (!(SPIxSTAT(pic_spi[bus]) & _SPI1STAT_SPITBE_MASK)) {}
+        }
+
+        /* Wait until RX FIFO is not empty */
+        while (!(SPIxSTAT(pic_spi[bus]) & _SPI1STAT_SPIRBF_MASK)) {}
+
+        rdata = SPIxBUF(pic_spi[bus]);
+
+        if (in_buffer)
+            *in_buffer++ = rdata;
+    }
+
+    if (!cont && cs != SPI_CS_UNDEF)
+        gpio_set((gpio_t)cs);
+}

Ok, I just pushed all my changes.

-- 
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/7383#discussion_r142007938
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20170930/379fc5d7/attachment-0001.html>


More information about the notifications mailing list