We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7b4a9c commit 2347a6dCopy full SHA for 2347a6d
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/i2c_api.c
@@ -57,7 +57,14 @@ int i2c_start(i2c_t *obj) {
57
}
58
59
int i2c_stop(i2c_t *obj) {
60
+ volatile uint32_t n = 0;
61
i2c_hal_send_stop(obj->instance);
62
+
63
+ // It seems that there are timing problems
64
+ // when there is no waiting time after a STOP.
65
+ // This wait is also included on the samples
66
+ // code provided with the freedom board
67
+ for (n = 0; n < 100; n++) __NOP();
68
first_read = 1;
69
return 0;
70
0 commit comments