1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

adjust clock stretch

This commit is contained in:
Michael Graff 2015-07-14 11:05:53 -07:00
parent dece240830
commit 4b8f5342cd

View File

@ -37,9 +37,9 @@ static unsigned char twi_sda, twi_scl;
#endif #endif
#if F_CPU == FCPU80 #if F_CPU == FCPU80
#define TWI_CLOCK_STRETCH 200 #define TWI_CLOCK_STRETCH 800
#else #else
#define TWI_CLOCK_STRETCH 400 #define TWI_CLOCK_STRETCH 1600
#endif #endif
void twi_setClock(unsigned int freq){ void twi_setClock(unsigned int freq){