diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-09-03 10:00:26 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-09-17 18:30:22 -0500 |
| commit | 45eec5b5a566f049edaff11e8457bc0befe79c60 (patch) | |
| tree | fd0507030525814eda1cccb62f9dadf43f7d69f7 /shared-bindings | |
| parent | 7f60ebd6c76841b338a4566c28c7cbfe28bee797 (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-bindings')
0 files changed, 0 insertions, 0 deletions
