summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-09-15 20:45:37 +0100
committerDamien George <damien.p.george@gmail.com>2015-09-15 20:45:37 +0100
commitd80174d7c3fe36f139c639d6a820cc4cbb88ddf9 (patch)
treedf1612f2c01a48440eb376e3fde50366e9aa6a92 /docs/library
parente2bfa471fa84db2a2d740d256ac4cca8cd4fd031 (diff)
downloadmicropython-d80174d7c3fe36f139c639d6a820cc4cbb88ddf9.tar.gz
micropython-d80174d7c3fe36f139c639d6a820cc4cbb88ddf9.zip
stmhal: Use polling, not DMA, for 1 byte SPI transfers.
There is an issue sending 1 byte on the SPI bus using DMA, but it only occurs when the transmit is done for the first time after initialising the SPI and DMA peripherals. All other cases (sending 2 or more bytes, doing send_recv, doing recv first) work okay. We sidestep this issue by using polling (not DMA) for all 1 byte transfers. This is fine because a 1 byte transfer can't be interrupted and doesn't need the benefits of DMA (and using polling for this case is more efficient). Resolves #1456.
Diffstat (limited to 'docs/library')
0 files changed, 0 insertions, 0 deletions