aboutsummaryrefslogtreecommitdiff
path: root/doc/spi.html
blob: e81637fcca99b40ecb2d6a6936fe89ef6c5eed49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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>