cpu/fe310: add i2c peripheral driver#12946
Merged
fjmolinas merged 4 commits intoRIOT-OS:masterfrom Jan 14, 2020
Merged
Conversation
c052498 to
c7664a4
Compare
222c281 to
8fa4f7c
Compare
8fa4f7c to
6d50540
Compare
Contributor
|
@aabadie needs rebase. |
6d50540 to
b3658ad
Compare
Contributor
Author
|
Done |
Contributor
|
Code looks good, will test on monday. |
fjmolinas
reviewed
Jan 13, 2020
Contributor
There was a problem hiding this comment.
I see a conflict in the used pins with the UPS this is when testing spi.esp module:
2020-01-13 10:01:04,699 # ATE0-->Send Flag Timed Out Busy. Giving Up.
2020-01-13 10:01:06,075 # Send Flag error: #255 #255 #255 #255 AT+BLEINIT=0-->Send Flag Timed Out Busy. Giving Up.
2020-01-13 10:01:07,451 # Send Flag error: #255 #255 #255 #255 AT+CWMODE=0-->Send Flag Timed Out Busy. Giving Up.
2020-01-13 10:01:07,455 # Send Flag error: #255 #255 #255 #255
2020-01-13 10:01:07,463 # Help: Press s to start test, r to print it is ready
Contributor
|
I can't make i2c work, same setup that is working on a |
Contributor
Author
|
Tested locally and I2C driver works for me. But I have other problems with xtimer (related to #9530 unfortunately). DetailsThe crash happens when calling Details |
fjmolinas
approved these changes
Jan 14, 2020
Contributor
fjmolinas
left a comment
There was a problem hiding this comment.
ACK, tested removing the xtimer call.
2020-01-14 10:19:49,791 # H: 40.7%, T: 23.7°C
2020-01-14 10:19:49,872 # H: 40.7%, T: 23.7°C
2020-01-14 10:19:49,953 # H: 40.7%, T: 23.7°C
2020-01-14 10:19:50,034 # H: 40.6%, T: 23.7°C
2020-01-14 10:19:50,114 # H: 40.6%, T: 23.7°C
2020-01-14 10:19:50,195 # H: 40.7%, T: 23.7°C
2020-01-14 10:19:50,276 # H: 40.6%, T: 23.7°C
2020-01-14 10:19:50,357 # H: 40.6%, T: 23.7°C
2020-01-14 10:19:50,437 # H: 40.7%, T: 23.7°C
2020-01-14 10:19:50,518 # H: 40.6%, T: 23.7°C
2020-01-14 10:19:50,599 # H: 40.6%, T: 23.7°C
2020-01-14 10:19:50,680 # H: 40.6%, T: 23.7°C
Contributor
Author
|
Thank you @fjmolinas ! |
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
This PR adds an implementation of the I2C peripheral driver for the RISCV FE310 CPU. This peripheral is only available on the HiFive1b board.
For the moment, I only tested with sensors plugged on the boards (lps22hb and hts221) and both are working well.
Because I had problems with the clock configuration, this PR is based on #12519
NACK is not handled by the driver (yet).
Testing procedure
Issues/PRs references
None