circuitpython/ports/atmel-samd/common-hal/busio
Jeff Epler 45eec5b5a5 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.
2020-09-17 18:30:22 -05:00
..
__init__.c Merge commit 'f869d6b2e339c04469c6c9ea3fb2fabd7bbb2d8c' into nrf2_merge 2017-10-24 22:31:16 -07:00
I2C.c Make requiring I2C pullups be optional 2020-01-09 17:31:50 -05:00
I2C.h add pin claiming to devices 2018-08-31 18:38:05 -04:00
OneWire.h Merge commit 'f869d6b2e339c04469c6c9ea3fb2fabd7bbb2d8c' into nrf2_merge 2017-10-24 22:31:16 -07:00
SPI.c samd: SPI: improve conditional code 2020-09-17 18:30:22 -05:00
SPI.h Add support for grayscale displays that are < 8 bit depth. 2019-07-19 16:06:11 -07:00
UART.c Add license to some obvious files. 2020-07-06 19:16:25 +01:00
UART.h UART fixes and enhancements; default board object fix 2018-09-12 17:19:43 -04:00