tinygo
tinygo copied to clipboard
atsamd21: fix SPI when SDI is set to NoPin
Untested
This should fix an issue when SDI is set to machine.NoPin
. This is already fixed for the samd51, in a basically identical way.
TinyHCI tests pass, so seems good.
The following solves the problem. So we can close this PR without merging it.
2540172cc5c684772480f895a682591c63dee7bb
Correction.
Since the code for samd5x has been changed by the following PR, it is better to change the code for samd2x in the same way. In other words, it is better to merge this PR.
https://github.com/tinygo-org/tinygo/pull/1485
@aykevl What do you think?
The differences are as follows