summaryrefslogtreecommitdiff
path: root/py/makeqstrdefs.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-02-01 11:45:29 +1100
committerDamien George <damien.p.george@gmail.com>2018-02-01 11:45:29 +1100
commitc0496fd44de562cd11e66acd9e42f796c3dcb5fb (patch)
tree74511ae894a574e6d98fcc1358d19398948c602d /py/makeqstrdefs.py
parenta44892dd0d79e039b4a4d1ec3ec7b9a6ed829ee6 (diff)
stm32/spi: Make SPI DMA wait routine more power efficient by using WFI.
The routine waits for the DMA to finish, which is signalled from a DMA IRQ handler. Using WFI makes the CPU sleep while waiting for the IRQ to arrive which decreases power consumption. To make it work correctly the check for the change in state must be atomic and so IRQs must be disabled during the check. The key feature of the Cortex MCU that makes this possible is that WFI will exit when an IRQ arrives even if IRQs are disabled.
Diffstat (limited to 'py/makeqstrdefs.py')
0 files changed, 0 insertions, 0 deletions