projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add demos/bootloaders/projects overview to the manual.
[pub/USBasp.git]
/
LUFA
/
Drivers
/
Peripheral
/
SPI.h
diff --git
a/LUFA/Drivers/Peripheral/SPI.h
b/LUFA/Drivers/Peripheral/SPI.h
index
4ada793
..
66cdaf5
100644
(file)
--- a/
LUFA/Drivers/Peripheral/SPI.h
+++ b/
LUFA/Drivers/Peripheral/SPI.h
@@
-33,9
+33,14
@@
* Hardware SPI subsystem driver for the supported USB AVRs models.
\r
*/
\r
\r
* Hardware SPI subsystem driver for the supported USB AVRs models.
\r
*/
\r
\r
-/** \ingroup Group_
Subsystem
Drivers
\r
+/** \ingroup Group_
Peripheral
Drivers
\r
* @defgroup Group_SPI SPI Driver - LUFA/Drivers/Peripheral/SPI.h
\r
*
\r
* @defgroup Group_SPI SPI Driver - LUFA/Drivers/Peripheral/SPI.h
\r
*
\r
+ * \section Sec_Dependencies Module Source Dependencies
\r
+ * The following files must be built with any user project that uses this module:
\r
+ * - None
\r
+ *
\r
+ * \section Module Description
\r
* Functions, macros, variables, enums and types related to the setup of a the SPI port.
\r
*
\r
* @{
\r
* Functions, macros, variables, enums and types related to the setup of a the SPI port.
\r
*
\r
* @{
\r
@@
-97,7
+102,9
@@
(PrescalerMask & ~SPI_USE_DOUBLESPEED));
\r
\r
if (PrescalerMask & SPI_USE_DOUBLESPEED)
\r
(PrescalerMask & ~SPI_USE_DOUBLESPEED));
\r
\r
if (PrescalerMask & SPI_USE_DOUBLESPEED)
\r
- SPSR = (1 << SPI2X);
\r
+ SPSR |= (1 << SPI2X);
\r
+ else
\r
+ SPSR &= ~(1 << SPI2X);
\r
}
\r
\r
/** Sends and receives a byte through the SPI interface, blocking until the transfer is complete.
\r
}
\r
\r
/** Sends and receives a byte through the SPI interface, blocking until the transfer is complete.
\r