usart_handler: DMA based memory copy
This commit is contained in:
parent
e8ab90c2b3
commit
ecd6c1d5d6
13 changed files with 367 additions and 408 deletions
20
lib/memcpy_dma.h
Normal file
20
lib/memcpy_dma.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* memcpy_dma.h
|
||||
*
|
||||
* Created on: Oct 1, 2019
|
||||
* Author: abody
|
||||
*/
|
||||
|
||||
#ifndef MEMCPY_DMA_H_
|
||||
#define MEMCPY_DMA_H_
|
||||
|
||||
#include <inttypes.h>
|
||||
#include "dma.h"
|
||||
//#include "dma_helper.h"
|
||||
//extern DMAINFO g_memcpyDmaInfo;
|
||||
|
||||
void InitMemcpyDma(DMA_TypeDef *dma, uint32_t stream);
|
||||
void * MemcpyDma(void *dst, void const *src, size_t length);
|
||||
void HandleMemcpyDmaIrq();
|
||||
|
||||
#endif /* MEMCPY_DMA_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue