Skip to content

Commit

Permalink
corrected issue#1536 - used correct define to create a configuration …
Browse files Browse the repository at this point in the history
…mask (#1613)
  • Loading branch information
MarcinKlosowskiMobica authored Jun 21, 2024
1 parent 9290bdd commit f5b7a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rp2_common/pico_i2c_slave/i2c_slave.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5b7a91

Please sign in to comment.