diff options
Diffstat (limited to 'chip/g/i2cs.c')
-rw-r--r-- | chip/g/i2cs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/g/i2cs.c b/chip/g/i2cs.c index 6bebd1d784..9aa73d18cb 100644 --- a/chip/g/i2cs.c +++ b/chip/g/i2cs.c @@ -273,7 +273,7 @@ void __attribute__((used)) _i2cs_write_complete_int(void) GWRITE_FIELD(I2CS, INT_STATE, INTR_WRITE_COMPLETE, 1); /* We're receiving some bytes, so don't sleep */ - disable_sleep(SLEEP_MASK_I2C_SLAVE); + disable_sleep(SLEEP_MASK_I2C_PERIPH); if (write_complete_handler_) { uint16_t bytes_written; @@ -330,7 +330,7 @@ void __attribute__((used)) _i2cs_write_complete_int(void) * disabled again in the next I2CS interrupt. */ delay_sleep_by(1 * SECOND); - enable_sleep(SLEEP_MASK_I2C_SLAVE); + enable_sleep(SLEEP_MASK_I2C_PERIPH); } DECLARE_IRQ(GC_IRQNUM_I2CS0_INTR_WRITE_COMPLETE_INT, _i2cs_write_complete_int, 1); |