summaryrefslogtreecommitdiffstatshomepage
path: root/py/unicode.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-21 01:14:14 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-21 01:14:14 +0100
commit3771a097dac8baaf6dc8a9618dc8a1074a43c439 (patch)
treeb0352bf8238bf646ee155d6feae14db04a67c570 /py/unicode.c
parenteb8bdf4df3550d1e3d0ef08cf1ce80108b721fda (diff)
downloadmicropython-3771a097dac8baaf6dc8a9618dc8a1074a43c439.tar.gz
micropython-3771a097dac8baaf6dc8a9618dc8a1074a43c439.zip
stmhal: Improve USART class, to be more like SPI and I2C.
The three classes I2C, SPI and USART now have a fairly uniform (Python) API. All are constructed, initialised and deinitialised in the same way. They can have most of their parameters set, using keyword arguments. All have send and recv (although slightly different with I2C requiring an address in master mode). recv can do inplace receiving (ie store the data in a previously-created bytearray). It's just polling mode at the moment, but interrupt and DMA would be nice to add.
Diffstat (limited to 'py/unicode.c')
0 files changed, 0 insertions, 0 deletions