mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
removed TWI_CLOCK_STRETCH_MULTIPLIER (#6867)
This commit is contained in:
parent
074a8016bf
commit
2309a1c9cb
@ -158,13 +158,6 @@ static Twi twi;
|
|||||||
#define FCPU80 80000000L
|
#define FCPU80 80000000L
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if F_CPU == FCPU80
|
|
||||||
#define TWI_CLOCK_STRETCH_MULTIPLIER 3
|
|
||||||
#else
|
|
||||||
#define TWI_CLOCK_STRETCH_MULTIPLIER 6
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
void Twi::setClock(unsigned int freq)
|
void Twi::setClock(unsigned int freq)
|
||||||
{
|
{
|
||||||
preferred_si2c_clock = freq;
|
preferred_si2c_clock = freq;
|
||||||
@ -231,7 +224,7 @@ void Twi::setClock(unsigned int freq)
|
|||||||
|
|
||||||
void Twi::setClockStretchLimit(uint32_t limit)
|
void Twi::setClockStretchLimit(uint32_t limit)
|
||||||
{
|
{
|
||||||
twi_clockStretchLimit = limit * TWI_CLOCK_STRETCH_MULTIPLIER;
|
twi_clockStretchLimit = limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user