aboutsummaryrefslogtreecommitdiff
path: root/doc/spi.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/spi.html')
-rw-r--r--doc/spi.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/spi.html b/doc/spi.html
new file mode 100644
index 0000000..e81637f
--- /dev/null
+++ b/doc/spi.html
@@ -0,0 +1,13 @@
+<h2>Serial peripheral interface</h2>
+
+<h3>spi_init</h3>
+
+<pre><code class="c">static inline void spi_init(enum spiMode mode)
+</code></pre>
+
+<p>Initializes SPI interface.
+Parameters:
+ mode - Specify mode of SPI interface</p>
+
+<p> NOTE: Global interrupt must be enabled for right function of SPI.
+ { SREG |= _BV(7) }</p>