Adds standard DONT_CARE pin name for specifying that any pin will work #447
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch dds a standard DONT_CARE pin name that allows specifying that any pin will work in a pin map. This is currently used in the nRF51822 serial API to allow specifying any pins as a UART.
On a chip like the nRF51822 that supports mapping functions to any arbitrary pin, it seems overly restrictive to limit a user to only use a set of pin mappings.
In my case I built a custom board that has a USB to UART and another port that could either be a UART or a number of other functions. I need to be able to map the UART to one of two different pin sets. This isn't supported by the PinMap in the nRF51822 serial_api.c.
I"m open to suggestions if someone has a better way of implementing this.