Skip to content

add IS_PIN_SPI(p) to Boards.h #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 17, 2013
Merged

add IS_PIN_SPI(p) to Boards.h #33

merged 2 commits into from
Feb 17, 2013

Conversation

ntruchsess
Copy link
Member

I've added a macro 'IS_PIN_SPI(p)' to Boards.h.
While SPI is not yet a feature in Firmata I can use this info in EthernetFirmata to exclude the SPI-pins from Capability- and PinMode-query (and hindering systemReset to set these pins to the default OUTPUT) which would interfere with the running Ethernet-lib and bring down an active IP-connection.
Since I didn't have reliable SPI-info at hand for the non-arduino boards I made IS_PIN_SPI(p) evaluate to '0' for all boards that do not have this macro defined.

@soundanalogous
Copy link
Member

All of the Teensy boards also define SS, MOSI, MISO and SCK so please add the macro for those boards as well.

@soundanalogous
Copy link
Member

Looks like the wiring boards define the SPI pins as well: see BoardDefs.h.

soundanalogous added a commit that referenced this pull request Feb 17, 2013
add IS_PIN_SPI(p) to Boards.h
@soundanalogous soundanalogous merged commit 046beff into firmata:dev Feb 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants