Fixed incorrect ADC driver init register manipulation (thanks to Tobias).
[pub/USBasp.git] / LUFA / Drivers / AT90USBXXX / SPI.h
index 0b333a8..d1c9ced 100644 (file)
                        #define SPI_SPEED_FCPU_DIV_32          (SPI_USE_DOUBLESPEED | (1 << SPR1))\r
 \r
                        /** SPI prescaler mask for SPI_Init(). Divides the system clock by a factor of 64. */\r
-                       #define SPI_SPEED_FCPU_DIV_64          (SPI_USE_DOUBLESPEED | (1 << SPR1) | (1 < SPR0))\r
+                       #define SPI_SPEED_FCPU_DIV_64          (SPI_USE_DOUBLESPEED | (1 << SPR1) | (1 << SPR0))\r
 \r
                        /** SPI prescaler mask for SPI_Init(). Divides the system clock by a factor of 128. */\r
-                       #define SPI_SPEED_FCPU_DIV_128         ((1 << SPR1) | (1 < SPR0))\r
+                       #define SPI_SPEED_FCPU_DIV_128         ((1 << SPR1) | (1 << SPR0))\r
 \r
                /* Inline Functions: */\r
                        /** Initializes the SPI subsystem, ready for transfers. Must be called before calling any other\r
@@ -98,7 +98,7 @@
                         *\r
                         *  \return Response byte from the attached SPI device\r
                         */\r
-                       static inline uint8_t SPI_TransferByte(const uint8_t Byte) ATTR_ALWAYSINLINE;\r
+                       static inline uint8_t SPI_TransferByte(const uint8_t Byte) ATTR_ALWAYS_INLINE;\r
                        static inline uint8_t SPI_TransferByte(const uint8_t Byte)\r
                        {\r
                                SPDR = Byte;\r
                         *\r
                         *  \param Byte Byte to send through the SPI interface\r
                         */\r
-                       static inline void SPI_SendByte(const uint8_t Byte) ATTR_ALWAYSINLINE;\r
+                       static inline void SPI_SendByte(const uint8_t Byte) ATTR_ALWAYS_INLINE;\r
                        static inline void SPI_SendByte(const uint8_t Byte)\r
                        {\r
                                SPDR = Byte;\r
                         *\r
                         *  \return The response byte from the attached SPI device\r
                         */\r
-                       static inline uint8_t SPI_ReceiveByte(void) ATTR_ALWAYSINLINE ATTR_WARN_UNUSED_RESULT;\r
+                       static inline uint8_t SPI_ReceiveByte(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;\r
                        static inline uint8_t SPI_ReceiveByte(void)\r
                        {\r
                                SPDR = 0x00;\r