summaryrefslogtreecommitdiff
path: root/shared-module/framebufferio
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-09-03 10:00:26 -0500
committerJeff Epler <jepler@gmail.com>2020-09-17 18:30:22 -0500
commit45eec5b5a566f049edaff11e8457bc0befe79c60 (patch)
treefd0507030525814eda1cccb62f9dadf43f7d69f7 /shared-module/framebufferio
parent7f60ebd6c76841b338a4566c28c7cbfe28bee797 (diff)
samd: SPI: improve conditional code
I recently misdiagnosed a "maybe-uninitialized" diagnostic as a bug in asf4. However, the problem was in our SPI code. A special case for samr21 MCUs was being applied to same54p20a and possibly other D5x/E5x MCUs, since the check was simply for pin PC19 existing at all. Change the check to use the macro PIN_PC19F_SERCOM4_PAD0 which is only defined if special function F of pin PC19 is SERCOM4 PAD0. Reorganize the code a little bit so that brace-matching in editors is not confused by the conditionalized code, including an unrelated change for APA102_SCK's condition. Revert the change to the Makefile that incorrectly attempted to silence the diagnostic.
Diffstat (limited to 'shared-module/framebufferio')
0 files changed, 0 insertions, 0 deletions