Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pico-sdk
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microcontroller
pico-sdk
Commits
f5b7a913
Unverified
Commit
f5b7a913
authored
1 year ago
by
MarcinKlosowskiMobica
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
corrected issue#1536 - used correct define to create a configuration mask (#1613)
parent
9290bdde
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/rp2_common/pico_i2c_slave/i2c_slave.c
+1
-1
1 addition, 1 deletion
src/rp2_common/pico_i2c_slave/i2c_slave.c
with
1 addition
and
1 deletion
src/rp2_common/pico_i2c_slave/i2c_slave.c
+
1
−
1
View file @
f5b7a913
...
@@ -69,7 +69,7 @@ void i2c_slave_init(i2c_inst_t *i2c, uint8_t address, i2c_slave_handler_t handle
...
@@ -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
);
i2c_hw_t
*
hw
=
i2c_get_hw
(
i2c
);
// unmask necessary interrupts
// unmask necessary interrupts
hw
->
intr_mask
=
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
;
I2C_IC_INTR_MASK_M_STOP_DET_BITS
|
I2C_IC_INTR_MASK_M_START_DET_BITS
;
// enable interrupt for current core
// enable interrupt for current core
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment