summaryrefslogtreecommitdiff
path: root/chip/max32660/i2c_chip.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/max32660/i2c_chip.c')
-rw-r--r--chip/max32660/i2c_chip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/max32660/i2c_chip.c b/chip/max32660/i2c_chip.c
index 201b42a8a8..54638cb5de 100644
--- a/chip/max32660/i2c_chip.c
+++ b/chip/max32660/i2c_chip.c
@@ -582,7 +582,7 @@ static void i2c_slave_handler(mxc_i2c_regs_t *i2c)
i2c->int_en0 = MXC_F_I2C_INT_EN0_DONE |
I2C_ERROR | MXC_F_I2C_INT_EN0_ADDR_MATCH;
/* Inhibit sleep mode when addressed until STOPF flag is set. */
- disable_sleep(SLEEP_MASK_I2C_SLAVE);
+ disable_sleep(SLEEP_MASK_I2C_PERIPHERAL);
}
/* Check for DONE interrupt. */
@@ -615,7 +615,7 @@ static void i2c_slave_handler(mxc_i2c_regs_t *i2c)
i2c_slave_service(req);
/* No longer inhibit deep sleep after done. */
- enable_sleep(SLEEP_MASK_I2C_SLAVE);
+ enable_sleep(SLEEP_MASK_I2C_PERIPHERAL);
}
/* Check for an I2C Master Read or Write. */