summaryrefslogtreecommitdiff
path: root/chip/lm4/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/lm4/i2c.c')
-rw-r--r--chip/lm4/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/lm4/i2c.c b/chip/lm4/i2c.c
index 0fdefc15d9..7f0fa19c95 100644
--- a/chip/lm4/i2c.c
+++ b/chip/lm4/i2c.c
@@ -61,7 +61,7 @@ static int wait_idle(int port)
* the I2C is either completed or timed out. Refer to the
* implementation of usleep() for a similar situation.
*/
- event |= (task_wait_event(1000000) & ~TASK_EVENT_I2C_IDLE);
+ event |= (task_wait_event(SECOND) & ~TASK_EVENT_I2C_IDLE);
LM4_I2C_MIMR(port) = 0x00;
task_waiting_on_port[port] = TASK_ID_INVALID;
if (event & TASK_EVENT_TIMER) {