mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-11-09 01:03:10 +03:00
i2c-bitbang: increase speed to ~110kHz
This commit is contained in:
1 parent
0aea9fff28
commit
73d697d788
1 file changed
+3
-1
@@ -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