kinetis_common: add a option to enable hardware CS for kinetis spi#2817
kinetis_common: add a option to enable hardware CS for kinetis spi#2817PeterKietzmann merged 1 commit intoRIOT-OS:masterfrom jfischer-no:pr@kinetis-enable-hwcs
Conversation
|
@jfischer-phytec-iot I think I can live with that workaround, after all the discussions about th CS line :-). @gebart do you have time to test? |
There was a problem hiding this comment.
Wouldn't it make sense to move this switch to the periph_conf?
There was a problem hiding this comment.
@PeterKietzmann No, it is also necessary for the lines https://github.com/jfischer-phytec-iot/RIOT/commit/ba9db2d147ac99fe0efaa9e6d7d924708f393e52#diff-1cbad4f25cbb4ed1edc201509a26b427R346 and https://github.com/jfischer-phytec-iot/RIOT/commit/ba9db2d147ac99fe0efaa9e6d7d924708f393e52#diff-1cbad4f25cbb4ed1edc201509a26b427R764.
|
Still I wonder why you cannot move it to the periph_conf.. I have a phyWAVE-A-Eval-Board here, is it possible to test SPI with this board? And by the way: what happened to "RIOT/boards/pba-d-01-kw2x/*" ? |
It allows backward compatibility, if
Sure, just rebase #2059 on this PR, btw do you have time to review #2059 😄 ?
❓ need more input ... |
|
@jfischer-phytec-iot I will test this PR first. Your code changes look reasonable to me. Regarding a review of #2059 I can't promise anything at the moment but I'll try to keep it in mind. |
|
@jfischer-phytec-iot I've got a phyWAVE-A-Eval-Board (1st revision). Are the relevant SPI pins (including CS line) on the pinout? If so, on which pins are they? |
|
@PeterKietzmann thx
It's like Arduino UNO Pinout (SPI0). 👀 -> 📧 |
|
You're welcome! Will you also answer my question :-) ? |
|
I am currently swamped at work and will not be able to test any of this in the near future, sorry. |
|
@PeterKietzmann 😃 look at your mailbox |
|
@jfischer-phytec-iot as nobody objects and I succesfully tested this PR I'd give my ACK. Will merge after squash |
minor fixes: - get rid of compiler warning "value 'SPI_1' not handled in switch" - add a giant macro to avoid redundant code in spi_init_master
|
@PeterKietzmann squashed |
|
OK let's do it! &go |
kinetis_common: add a option to enable hardware CS for kinetis spi

This PR adds a option to enable hardware CS for kinetis spi (PCS0 only) + some fixes.