uncrustify libraries/I2C/I2C.cpp

This commit is contained in:
uncrustify 2012-08-16 23:22:38 -07:00 committed by Pat Hickey
parent 8a53c2416d
commit 66948f8abb

View File

@ -1,34 +1,34 @@
/* /*
I2C.cpp - I2C library * I2C.cpp - I2C library
Copyright (c) 2011 Wayne Truchsess. All right reserved. * Copyright (c) 2011 Wayne Truchsess. All right reserved.
Rev 2.0 - September 19th, 2011 * Rev 2.0 - September 19th, 2011
- Added support for timeout function to prevent * - Added support for timeout function to prevent
and recover from bus lockup (thanks to PaulS * and recover from bus lockup (thanks to PaulS
and CrossRoads on the Arduino forum) * and CrossRoads on the Arduino forum)
- Changed return type for stop() from void to * - Changed return type for stop() from void to
uint8_t to handle timeOut function * uint8_t to handle timeOut function
Rev 1.0 - August 8th, 2011 * Rev 1.0 - August 8th, 2011
*
This is a modified version of the Arduino Wire/TWI * This is a modified version of the Arduino Wire/TWI
library. Functions were rewritten to provide more functionality * library. Functions were rewritten to provide more functionality
and also the use of Repeated Start. Some I2C devices will not * and also the use of Repeated Start. Some I2C devices will not
function correctly without the use of a Repeated Start. The * function correctly without the use of a Repeated Start. The
initial version of this library only supports the Master. * initial version of this library only supports the Master.
*
*
This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
*
This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details. * Lesser General Public License for more details.
*
You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <inttypes.h> #include <inttypes.h>