Skip to content

drivers: periph: add generic spi fallbacks#3620

Merged
kaspar030 merged 9 commits intoRIOT-OS:masterfrom
kaspar030:add_generic_spi_fallbacks
Aug 14, 2015
Merged

drivers: periph: add generic spi fallbacks#3620
kaspar030 merged 9 commits intoRIOT-OS:masterfrom
kaspar030:add_generic_spi_fallbacks

Conversation

@kaspar030
Copy link
Copy Markdown
Contributor

I've seen multiple definitions of basically the same functions, so I factored them out into a common module.

There's room for more, e.g., the locking of SPI buses could be unified in the same way.

For spi_transfer_reg*, I've chosen the implementation with the most eror checking, though I'm not sure that is actually needed or even harmful.

@kaspar030 kaspar030 added the Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation label Aug 13, 2015
@kaspar030 kaspar030 added the Discussion: RFC The issue/PR is used as a discussion starting point about the item of the issue/PR label Aug 13, 2015
@kaspar030 kaspar030 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Aug 13, 2015
@kaspar030
Copy link
Copy Markdown
Contributor Author

(launching CI to spot build errors)

@kaspar030 kaspar030 force-pushed the add_generic_spi_fallbacks branch from ccbc85e to 81edd16 Compare August 13, 2015 22:07
@kaspar030
Copy link
Copy Markdown
Contributor Author

  • rebased

@haukepetersen
Copy link
Copy Markdown
Contributor

I actually had something similar in mind once, but never got to it. In #3216 I actually already improved those implementations a bit, though the PR slipped pretty far down on my prio list...

ACK once squashed and Travis is happy.

@kaspar030 kaspar030 force-pushed the add_generic_spi_fallbacks branch from 75cb58a to 6b2b5eb Compare August 14, 2015 12:47
@kaspar030
Copy link
Copy Markdown
Contributor Author

and GO.

kaspar030 added a commit that referenced this pull request Aug 14, 2015
drivers: periph: add generic spi fallbacks
@kaspar030 kaspar030 merged commit 0541d21 into RIOT-OS:master Aug 14, 2015
@kaspar030 kaspar030 deleted the add_generic_spi_fallbacks branch August 14, 2015 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Discussion: RFC The issue/PR is used as a discussion starting point about the item of the issue/PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants