cpu/board: updated spi driver for arduino-due#1584
cpu/board: updated spi driver for arduino-due#1584LudwigKnuepfer merged 2 commits intoRIOT-OS:masterfrom
Conversation
|
@PeterKietzmann please rebase your code |
f93bfbd to
711a967
Compare
|
I think this PR should be spitted in two, that the spi_test is independent... and then the test can more in RIOT separately. @haukepetersen what do you think? |
|
@PeterKietzmann this drivers does not implement which are necessary for your nrf24l01 driver: #1704 you can probably copy https://github.com/RIOT-OS/RIOT/blob/master/cpu/stm32f1/periph/spi.c#L185 or am I wrong with that? |
b792e81 to
db5a7c9
Compare
|
Implemented |
|
Would like to see this in the master soon, especially because PR #1704 needs it. For me it is fine! Someone check, ACK? |
|
ACK for functionality |
cpu/sam3x8e/periph/spi.c
Outdated
There was a problem hiding this comment.
please remove this (and possibly other prefixing) blank line(s)
26feedb to
e02d13e
Compare
|
addressed some style fixes, travis warnings and squashed |
|
Please change the commit message. As far as I see, the commit does not complete, but rather implement SPI for the sam.. right? |
|
Kicked Travis |
|
Travis is having a bad day. |
cpu/sam3x8e/periph/spi.c
Outdated
cpu/sam3x8e/periph/spi.c
Outdated
There was a problem hiding this comment.
BTW: I think a lot of these switch statements miss a default case.
|
Please check the periph API for all functions to make sure the return values and parameters match the specification. |
a444c37 to
47114fb
Compare
|
Travis is happy now. And you @LudwigOrtmann, @haukepetersen ? |
|
My happiness would be easier to determine if you had not squashed immediately (as suggested by the development procedures) ;-) |
|
#1584 (comment) has not been addressed yet. |
|
To be honest I do not really know what you mean with "arduino-changes". |
|
I mean the changes in |
|
I'm happy otherwise. |
cpu/sam3x8e/periph/spi.c
Outdated
There was a problem hiding this comment.
I don't think casting is the right approach here.
I mean - if length really exceeds int, the result is off now, and this is lost.
IFF this should be handled at all, I'd length = (length > INT_MAX) INT_MAX : length; (if INT_MAX is the right macro, this is off the top of my head).
There was a problem hiding this comment.
Then I would suggest to leave it like before without a cast and change it if we found a good solution in PR #1769.
aa1e6e4 to
218ad47
Compare
218ad47 to
695c34a
Compare
|
Everyone happy? @LudwigOrtmann, @haukepetersen ? |
|
Happy Happy! ACK |
cpu/board: updated spi driver for arduino-due

This PR should replace PR #1544 from @blanloem because his internship ended. It contains an updated and adapted version of the SPI low-level driver for arduino-due boards.