1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-12-24 11:21:24 +03:00

Wire library patch to provide better error handling.

This commit is contained in:
David A. Mellis
2008-06-21 23:16:27 +00:00
parent 3233d7939b
commit 0bdc02cea5
6 changed files with 65 additions and 29 deletions

View File

@@ -17,18 +17,18 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef twi_h
#define twi_h
#ifndef twi_h
#define twi_h
#include <inttypes.h>
//#define ATMEGA8
#ifndef CPU_FREQ
#ifndef CPU_FREQ
#define CPU_FREQ 16000000L
#endif
#ifndef TWI_FREQ
#ifndef TWI_FREQ
#define TWI_FREQ 100000L
#endif
@@ -51,7 +51,7 @@
void twi_attachSlaveTxEvent( void (*)(void) );
void twi_reply(uint8_t);
void twi_stop(void);
void twi_releaseBus(void);
void twi_releaseBus(void);
#endif