Skip to content

Conversation

@fakufaku
Copy link
Contributor

Changed Sd2PinMap.h to use the pin mapping defined in the variant header pins_arduino.h (instead of redefining everything).

This small change makes the SD library compatible with any board that has a variant defined.

The library was tested successfully for both read and write using both the hardware SPI and the soft SPI.

PS.
This pull request replaces pull request #117. The content is the same, but now neatly grouped in a single commit.

@ghost ghost assigned cmaglie Nov 1, 2012
@ffissore ffissore added the New label Feb 27, 2014
@cmaglie cmaglie added feature request A request to make an enhancement (not a bug fix) Library: SD The SD Arduino library labels Apr 8, 2015
@ffissore ffissore assigned cmaglie and unassigned cmaglie May 12, 2015
@matthijskooijman
Copy link
Collaborator

This commit looks good to me. I haven't checked it thoroughly or tested it, but the diff looks fine.

@cmaglie
Copy link
Member

cmaglie commented Jan 25, 2016

Rebased and merged here: 05a9750

@fakufaku, thank you!

@cmaglie cmaglie closed this Jan 25, 2016
@cmaglie cmaglie added this to the Release 1.6.8 milestone Jan 25, 2016
@cmaglie
Copy link
Member

cmaglie commented Jan 27, 2016

Ok, it seems that we called victory too fast: as @PaulStoffregen pointed out (05a9750#commitcomment-15657902) this patch has a big performance impact, so I'm reverting for now, until we find a better way to improve optimization of pin-mapping macros (at least when the argument is a constant known at compile-time).

PS: @JasonSheng I've merged your patch in the meantime, sorry for the confusion!

tbowmo pushed a commit to tbowmo/Arduino that referenced this pull request Jul 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request A request to make an enhancement (not a bug fix) Library: SD The SD Arduino library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants