mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 05:38:33 +03:00
i2c-bitbang: increase speed to ~110kHz
This commit is contained in:
@@ -12,7 +12,9 @@ static void i2c_delay()
|
||||
volatile int v;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 100; i++) {
|
||||
/* 100 cycles results in SCL peak length of 44us, so it's about
|
||||
* 440ns per cycle here */
|
||||
for (i = 0; i < 14; i++) {
|
||||
v = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user