circuitpython/ports/atmel-samd/common-hal
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
..
_pew atmel-samd: Add support for SAM E54 family MCUs 2020-06-23 10:41:48 -05:00
analogio Add license to some obvious files. 2020-07-06 19:16:25 +01:00
audiobusio add blm_badge; add CIRCUITPY_AUDIOBUSIOIO_I2SOUT 2020-07-28 11:49:54 -04:00
audioio atmel-samd: Add support for SAM E54 family MCUs 2020-06-23 10:41:48 -05:00
board Add license to some obvious files. 2020-07-06 19:16:25 +01:00
busio samd: SPI: improve conditional code 2020-09-17 18:30:22 -05:00
countio Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
digitalio Update digitalio api for other ports 2020-05-20 09:23:42 -07:00
displayio Initial work on SAMD 2020-03-13 11:16:41 -07:00
frequencyio supervisor: factor supervisor_background_tasks from sundry ports 2020-07-15 11:49:44 -05:00
i2cperipheral I2CPeripheral: Rename class and its module 2020-06-25 11:44:19 -05:00
microcontroller Moved checks for invalid pin to common-hal/microcontroller/Pin.c 2020-09-05 11:42:06 -05:00
neopixel_write atmel-samd: add same51, feather_m4_can 2020-09-08 13:06:45 -05:00
nvm wip 2020-01-03 10:24:07 -05:00
os atmel-samd: Add support for SAM E54 family MCUs 2020-06-23 10:41:48 -05:00
ps2io Initial work on SAMD 2020-03-13 11:16:41 -07:00
pulseio Merge pull request #28 from adafruit/main 2020-09-14 16:50:40 -05:00
pwmio Split pulseio.PWMOut into pwmio 2020-08-18 13:08:33 -07:00
rgbmatrix RGBMatrix: finish renaming from Protomatter 2020-04-17 18:44:07 -05:00
rotaryio typo in IncrementalEncoder.c 2019-08-20 16:23:17 -04:00
rtc Combine similar strings to reduce size of translations 2020-08-04 13:34:29 -05:00
sdioio atmel-sam: sdio: disable debug prints by default 2020-06-26 13:16:16 -05:00
supervisor Fix up end of file and trailing whitespace. 2020-06-03 10:56:35 +01:00
touchio fix up SAMD21 sleep 2020-03-17 12:10:35 -07:00