summaryrefslogtreecommitdiffstatshomepage
path: root/py/objfloat.c
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2015-11-15 17:02:43 -0800
committerDamien George <damien.p.george@gmail.com>2015-11-24 09:37:25 +0000
commitb677f03407c1b35fcfc4d6948a34a4281033865a (patch)
tree3ee39f6ccda7e24676fc7257876a43ceaf5f03ba /py/objfloat.c
parent9f5486c7e2928435362b7ae06f0d678a4798693a (diff)
downloadmicropython-b677f03407c1b35fcfc4d6948a34a4281033865a.tar.gz
micropython-b677f03407c1b35fcfc4d6948a34a4281033865a.zip
stmhal: Turn off DMA clocks when idle for 100 msec
Turning on each DMA block increases the current consumption by about 8 mA. This code adds an idle timer for each DMA block and turns off the clocks when no streams are in use for 128 msec. Having a small timeout allows for improved performance when back-to-back transfers are being performed. The 128 msec is basically a guess.
Diffstat (limited to 'py/objfloat.c')
0 files changed, 0 insertions, 0 deletions