We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b0bd195 + 4d67047 commit c063fdfCopy full SHA for c063fdf
1 file changed
Src/setup.c
@@ -314,6 +314,10 @@ void i2c_config(void) {
314
i2c_enable(MPU_I2C);
315
/* enable acknowledge */
316
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);
321
322
#ifdef AUX45_USE_I2C
323
/* I2C clock configure */
0 commit comments