Change over unix line-endings to dos line endings.
[pub/lufa.git] / LUFA / Drivers / Peripheral / AVRU4U6U7 / TWI.h
index be905fe..990b44d 100644 (file)
@@ -29,6 +29,7 @@
 */\r
 \r
 /** \file\r
+ *  \brief TWI peripheral driver for the U7, U6 and U4 USB AVRs.\r
  *\r
  *  Master mode TWI driver for the AT90USB1287, AT90USB1286, AT90USB647, AT90USB646, ATMEGA16U4 and ATMEGA32U4 AVRs.\r
  *\r
@@ -56,6 +57,7 @@
                #include <avr/io.h>\r
                #include <stdbool.h>\r
                #include <util/twi.h>\r
+               #include <util/delay.h>\r
                \r
        /* Enable C linkage for C++ Compilers: */\r
                #if defined(__cplusplus)\r
@@ -63,7 +65,7 @@
                #endif\r
 \r
        /* Preprocessor Checks: */\r
-               #if !defined(INCLUDE_FROM_TWI_H)\r
+               #if !defined(__INCLUDE_FROM_TWI_H)\r
                        #error Do not include this file directly. Include LUFA/Drivers/Peripheral/TWI.h instead.\r
                #endif\r
 \r
                        /** Begins a master mode TWI bus communication with the given slave device address.\r
                         *\r
                         *  \param[in] SlaveAddress  Address of the slave TWI device to communicate with\r
+                        *  \param[in] TimeoutMS     Timeout period within which the slave must respond, in milliseconds\r
                         *\r
                         *  \return Boolean true if the device is ready for data, false otherwise\r
                         */\r
-                       bool TWI_StartTransmission(uint8_t SlaveAddress);\r
+                       bool TWI_StartTransmission(uint8_t SlaveAddress, uint8_t TimeoutMS);\r
 \r
        /* Disable C linkage for C++ Compilers: */\r
                #if defined(__cplusplus)\r