leaflabs / libmaple

[INACTIVE] C and C++ library for STM32 ARM Cortex-M3 development boards.
http://leaflabs.com/docs/libmaple.html
Other
304 stars 218 forks source link

Revert "always clear ISR DMA bit before even calling handler" #96

Closed jonatanolofsson closed 10 years ago

jonatanolofsson commented 10 years ago

This change breaks the possibility to e.g. dma_get_irq_cause() and thus the possibility to e.g. detect errors / half complete in the transfer. To start a new dma from the irq, the behaviour may be mimicked by calling dma_clear_isr_bits() in the handler.

mbolivar commented 10 years ago

Good point.