Add demos/bootloaders/projects overview to the manual.
[pub/USBasp.git] / LUFA / Drivers / Peripheral / SPI.h
index 4ada793..66cdaf5 100644 (file)
  *  Hardware SPI subsystem driver for the supported USB AVRs models.\r
  */\r
 \r
-/** \ingroup Group_SubsystemDrivers\r
+/** \ingroup Group_PeripheralDrivers\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
                                          (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