cc26xx_cc13xx: add periph_i2c implementation#14128
Merged
benpicco merged 4 commits intoRIOT-OS:masterfrom May 25, 2020
Merged
Conversation
Signed-off-by: Jean Pierre Dudey <[email protected]>
Signed-off-by: Jean Pierre Dudey <[email protected]>
Signed-off-by: Jean Pierre Dudey <[email protected]>
9 tasks
Contributor
Sure @jeandudey |
Signed-off-by: Jean Pierre Dudey <[email protected]>
5804af1 to
85a2232
Compare
Contributor
|
Hi! I was testing the CC1352P Launchpad and I2C pins are good. 👍 > i2c_read_reg 0 85 6 0
2
2020-05-25 21:58:04,759 # i2c_read_reg 0 85 6 0
3
2020-05-25 21:58:04,763 # Command: i2c_read_reg(0, 0x55, 0x06, 0x00)
4
2020-05-25 21:58:04,768 # Success: i2c_0 read 1 byte(s) from reg 0x06 : [0xa8] |
Contributor
Author
|
Thanks for the review and time dedicated! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
The CC26xx/CC13xx MCUs have only a single I2C interface, and has not changed between x0/x2 revisions, it's exactly the same (the SDK is using the same exact code).
Only 100 kbit/s mode is supported, fast mode (400 kbit/s) is up to another PR.
Testing procedure
cc26x0boards should still have a working I2C (no code is touched in reality).cc26x2/cc13x2boards should be able to runtests/periph_i2ccorrectly with a known working device. Please note that this device has weak pull-up resistors.Issues/PRs references
#13635
cc @luisan00, could you check if the pins for CC1352P launchpad are good?