drivers/soft_spi: fix soft spi transfer bug#16164
Conversation
|
I am no reviewer but to interested by the Tietel of your PR The following might be early unnecessary optimization and i currently have no spi device to check but i would go with this: out as a transfer register; shifting only by one (some archs (e.g.:AVR) a bad at shifting more than on step at once) For the read function i would just transfer 0x00 as done for hardware SPI. |
test on w25q64 ok |
|
@kex2017: Thanks for testing Even though I am not a reviewer, i would suggest:
|
|
Thank you for your advice |
maribu
left a comment
There was a problem hiding this comment.
Thanks for this fix. I wonder how this ever got merged in this state.
I have some comments regarding code style.
|
Code looks good to me. Let's see if the CI has some comments. Feel free to squash. It might be that now some boards fail to build test applications or similar due to the increased ROM size. If that happens, we need to disable the final linking stage in the affected application by adding the affected board to the applications |
Maybe add the affected board to the applications Makefile.ci is a good way |
Not needed, all builds succeeded :-) |
|
Tested using #16196. Please squash! |
|
@kex2017 Could you combine all commits into the first using |
|
@kex2017 maybe its not so easy for you since this is your master branch you need to rebase it on upstream/master
if you do not yet have an upstream RIOT remote you might need to create one
and rebase on its master
and then mark your commits as @maribu described |
maribu
left a comment
There was a problem hiding this comment.
ACK. Thanks for the fix. A very nice first contribution, btw!
fix:fix drivers/soft_spi transfer one byte without read back bug
test:test read w25q64 id success