X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/4d246a82cbed77cea849ddcbc88d32019665edae..27eb17cb934dcd3807bacdfe87f853e32f0cfdb4:/LUFA/Drivers/Peripheral/AVRU4U6U7/TWI.h diff --git a/LUFA/Drivers/Peripheral/AVRU4U6U7/TWI.h b/LUFA/Drivers/Peripheral/AVRU4U6U7/TWI.h index be905fe4e..990b44d14 100644 --- a/LUFA/Drivers/Peripheral/AVRU4U6U7/TWI.h +++ b/LUFA/Drivers/Peripheral/AVRU4U6U7/TWI.h @@ -29,6 +29,7 @@ */ /** \file + * \brief TWI peripheral driver for the U7, U6 and U4 USB AVRs. * * Master mode TWI driver for the AT90USB1287, AT90USB1286, AT90USB647, AT90USB646, ATMEGA16U4 and ATMEGA32U4 AVRs. * @@ -56,6 +57,7 @@ #include #include #include + #include /* Enable C linkage for C++ Compilers: */ #if defined(__cplusplus) @@ -63,7 +65,7 @@ #endif /* Preprocessor Checks: */ - #if !defined(INCLUDE_FROM_TWI_H) + #if !defined(__INCLUDE_FROM_TWI_H) #error Do not include this file directly. Include LUFA/Drivers/Peripheral/TWI.h instead. #endif @@ -131,10 +133,11 @@ /** Begins a master mode TWI bus communication with the given slave device address. * * \param[in] SlaveAddress Address of the slave TWI device to communicate with + * \param[in] TimeoutMS Timeout period within which the slave must respond, in milliseconds * * \return Boolean true if the device is ready for data, false otherwise */ - bool TWI_StartTransmission(uint8_t SlaveAddress); + bool TWI_StartTransmission(uint8_t SlaveAddress, uint8_t TimeoutMS); /* Disable C linkage for C++ Compilers: */ #if defined(__cplusplus)