summaryrefslogtreecommitdiffstatshomepage
path: root/unix/modos.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-11-14 16:13:58 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-11-14 16:14:08 +0200
commit16d42368a64cca3927ceac26b33015f73d501427 (patch)
tree55781462f9dd459a2238f4f736c180707a5e52b8 /unix/modos.c
parent908f5159cf9f0ef5b07de243a76b6cfab88b3f0f (diff)
downloadmicropython-16d42368a64cca3927ceac26b33015f73d501427.tar.gz
micropython-16d42368a64cca3927ceac26b33015f73d501427.zip
stmhal/modmachine: Initial attempt to add I2C & SPI classes.
In new hardware API, these classes implement master modes of interfaces, and "mode" parameter is not accepted. Trying to implement new HW API in terms of older pyb module leaves variuos corner cases: In new HW API, I2C(1) means "I2C #1 in master mode" (? depends on interpretation), while in old API, it means "I2C #1, with no settings changes". For I2C class, it's easy to make mode optional, because that's last positional param, but for SPI, there's "baudrate" after it (which is inconsistent with I2C, which requires "baudrate" to be kwonly-arg).
Diffstat (limited to 'unix/modos.c')
0 files changed, 0 insertions, 0 deletions