|
TM STM32F4xx Libraries
v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
|
DMA library for STM32F4xx for several purposes - http://stm32f4-discovery.com/2015/06/library-63-dma-for-stm32f4xx. More...
Modules | |
| TM_DMA_Macros | |
| Library defines. | |
| TM_DMA_Typedefs | |
| Library Typedefs. | |
| TM_DMA_Functions | |
| Library Functions. | |
DMA library for STM32F4xx for several purposes - http://stm32f4-discovery.com/2015/06/library-63-dma-for-stm32f4xx.
This is a generic DMA library for STM32F4xx devices.
It allows you to easily enable interrupts for DMA streams, checking flags and more.
It is also designed in a ways that all interrupts that happens are handled by this library. No worries for correct stream handler anymore!
Library implements ALL stream handlers (DMA1,2, streams 0 to 7, together is this 14 stream handlers) but some of my libraries uses default stream handler, like FATFS. FATFS uses DMA2_Stream3 for interrupts for SDIO and in my FATFS library is written function name DMA2_Stream3_IRQHandler().
DMA library also features this function and now if you use DMA library and FATFS library, you will get error for "Multiple declarations...".
To prevent this link errors, you can open defines.h configuration file and add defines like below:
//Disable DMA2 Stream3 IRQ handler for TM DMA library #define DMA2_STREAM3_DISABLE_IRQHANDLER //For all other DMAs and STREAMS, syntax is similar: #define DMAx_STREAMy_DISABLE_IRQHANDLER //Where X is 1 or 2 for DMA1 or DMA2 and y is 0 to 7 for STREAM0 to STREAM7 on specific DMA
Every stream on DMA can make 5 interrupts. My library is designed in a way that specific callback is called for each interrupt type. Check functions section for more informations
Version 1.1
- June 13, 2015
- Added support for clearing DMA interrupt flags
Version 1.0
- First release
- STM32F4xx - STM32F4xx DMA - MISC - defines.h - attributes.h