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:
parent
dece240830
commit
4b8f5342cd
@ -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){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user