mirror of
https://github.com/EFeru/hoverboard-sideboard-hack-GD.git
synced 2026-02-16 23:21:09 +00:00
Add i2c_interrupt_enable calls to enable interrupts
This commit is contained in:
@@ -315,6 +315,10 @@ void i2c_config(void) {
|
||||
/* enable acknowledge */
|
||||
i2c_ack_config(MPU_I2C, I2C_ACK_ENABLE);
|
||||
|
||||
i2c_interrupt_enable(MPU_I2C, I2C_INT_ERR);
|
||||
i2c_interrupt_enable(MPU_I2C, I2C_INT_EV);
|
||||
i2c_interrupt_enable(MPU_I2C, I2C_INT_BUF);
|
||||
|
||||
#ifdef AUX45_USE_I2C
|
||||
/* I2C clock configure */
|
||||
//i2c_clock_config(AUX_I2C, AUX_I2C_SPEED, I2C_DTCY_2); // I2C duty cycle in fast mode
|
||||
|
||||
Reference in New Issue
Block a user