Reorganizing project

This commit is contained in:
Attila Body 2019-11-08 11:47:49 +01:00
commit 9924e704db
14 changed files with 1029 additions and 0 deletions

28
inc/ll_memcpydma.h Normal file
View file

@ -0,0 +1,28 @@
/*
* llmemcpydma.h
*
* Created on: Nov 4, 2019
* Author: abody
*/
#ifndef LL_MEMCPY_DMA_H_
#define LL_MEMCPY_DMA_H_
#include "f4ll/ll_dmahelper.h"
#include "singleton.h"
namespace f4ll {
class LL_MemcpyDma : public Singleton<LL_MemcpyDma>, private LL_DmaHelper
{
friend class Singleton<LL_MemcpyDma>;
public:
void* Copy(void *dst, void const *src, uint16_t length);
void DmaTransferCompleted();
private:
LL_MemcpyDma(DMA_TypeDef *dma, uint32_t stream);
bool volatile m_busy = false;
};
} /* namespace f4ll */
#endif /* LL_MEMCPY_DMA_H_ */