AStar32U4 library
SPIPause.h
Go to the documentation of this file.
1
// Copyright Pololu Corporation. For more information, see http://www.pololu.com/
2
5
#pragma once
6
7
#include <avr/io.h>
8
15
class
SPIPause
16
{
18
uint8_t savedSPCR;
19
20
public
:
21
22
SPIPause
()
23
{
24
savedSPCR = SPCR;
25
SPCR &= ~(1 << SPE);
26
}
27
28
~
SPIPause
()
29
{
30
SPCR = savedSPCR;
31
}
32
33
};
SPIPause
Definition:
SPIPause.h:15
Generated by
1.8.15