Skip to content
Snippets Groups Projects
Unverified Commit f5b7a913 authored by MarcinKlosowskiMobica's avatar MarcinKlosowskiMobica Committed by GitHub
Browse files

corrected issue#1536 - used correct define to create a configuration mask (#1613)

parent 9290bdde
Branches
Tags
No related merge requests found
......@@ -69,7 +69,7 @@ void i2c_slave_init(i2c_inst_t *i2c, uint8_t address, i2c_slave_handler_t handle
i2c_hw_t *hw = i2c_get_hw(i2c);
// unmask necessary interrupts
hw->intr_mask =
I2C_IC_INTR_MASK_M_RX_FULL_BITS | I2C_IC_INTR_MASK_M_RD_REQ_BITS | I2C_IC_RAW_INTR_STAT_TX_ABRT_BITS |
I2C_IC_INTR_MASK_M_RX_FULL_BITS | I2C_IC_INTR_MASK_M_RD_REQ_BITS | I2C_IC_INTR_MASK_M_TX_ABRT_BITS |
I2C_IC_INTR_MASK_M_STOP_DET_BITS | I2C_IC_INTR_MASK_M_START_DET_BITS;
// enable interrupt for current core
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment