Skip to content

Commit c063fdf

Browse files
authored
Merge pull request #37 from hoverboardhavoc/i2c_interrupt_enable
Add i2c_interrupt_enable calls to enable interrupts
2 parents b0bd195 + 4d67047 commit c063fdf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Src/setup.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,10 @@ void i2c_config(void) {
314314
i2c_enable(MPU_I2C);
315315
/* enable acknowledge */
316316
i2c_ack_config(MPU_I2C, I2C_ACK_ENABLE);
317+
318+
i2c_interrupt_enable(MPU_I2C, I2C_INT_ERR);
319+
i2c_interrupt_enable(MPU_I2C, I2C_INT_EV);
320+
i2c_interrupt_enable(MPU_I2C, I2C_INT_BUF);
317321

318322
#ifdef AUX45_USE_I2C
319323
/* I2C clock configure */

0 commit comments

Comments
 (0)