Skip to content

Commit

Permalink
Merge pull request esp8266#553 from skandragon/esp8266
Browse files Browse the repository at this point in the history
adjust clock stretch
  • Loading branch information
igrr committed Jul 16, 2015
2 parents c7a46bc + 8935221 commit 3913e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_si2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ static unsigned char twi_sda, twi_scl;
#endif

#if F_CPU == FCPU80
#define TWI_CLOCK_STRETCH 200
#define TWI_CLOCK_STRETCH 800
#else
#define TWI_CLOCK_STRETCH 400
#define TWI_CLOCK_STRETCH 1600
#endif

void twi_setClock(unsigned int freq){
Expand Down

0 comments on commit 3913e66

Please sign in to comment.