Add arduino-alike GPIO pin control helpers
authorWez Furlong <wez@fb.com>
Mon, 28 Nov 2016 06:43:11 +0000 (22:43 -0800)
committerWez Furlong <wez@fb.com>
Mon, 28 Nov 2016 06:58:34 +0000 (22:58 -0800)
commit8485bb34d2e291db5b6c81f892850da1cdca37ba
tree17ba7e60725d028fb7a1c6ba54b1a73bac768af9
parentbe4e75423a232d9d328bb23835e0fa5152292c95
Add arduino-alike GPIO pin control helpers

Unlike the arduino functions, these don't take abstract pin numbers,
they take pin labels like `B0`.  Also, rather than taking very
generic parameter names, these take slightly more descriptive
enum values.

These improve the clarity of code that would otherwise be inscrutable
bit manipulation in tersely named port register names.
quantum/pincontrol.h [new file with mode: 0644]