diff options
author | Karel Kočí <cynerd@email.cz> | 2015-10-17 15:40:51 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-10-17 15:40:51 +0200 |
commit | b0d8f22f3492fbb3f6dc0e8026e63c803af59007 (patch) | |
tree | eb9707612e87856962474885f2a18ae1621d214e /doc/spi.html | |
parent | 8fa9db4244f4ee33aa47561c569edfa62fe37928 (diff) | |
download | avr-ioe-b0d8f22f3492fbb3f6dc0e8026e63c803af59007.tar.gz avr-ioe-b0d8f22f3492fbb3f6dc0e8026e63c803af59007.tar.bz2 avr-ioe-b0d8f22f3492fbb3f6dc0e8026e63c803af59007.zip |
Complete commit of current work
Diffstat (limited to 'doc/spi.html')
-rw-r--r-- | doc/spi.html | 13 |
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> |