Files
KaOs d270131062 RevE-light development version
WARNING: The files in this commit are our current development version. The hardware and software is not functional yet - so do not use it. We will not answer any support inquiry regarding this version at the moment.
2017-11-23 14:40:40 +00:00

34 lines
782 B
C

/*
* Flash.h
*
* Created on: 20.03.2013
* Author: skuser
*/
#ifndef MEMORY_H_
#define MEMORY_H_
#define MEMORY_SIZE (FLASH_DATA_SIZE) /* From makefile */
#define MEMORY_INIT_VALUE 0x00
#define MEMORY_SIZE_PER_SETTING 4096
#ifndef __ASSEMBLER__
#include "Common.h"
void MemoryInit(void);
void MemoryReadBlock(void* Buffer, uint16_t Address, uint16_t ByteCount);
void MemoryWriteBlock(const void* Buffer, uint16_t Address, uint16_t ByteCount);
void MemoryClear(void);
void MemoryRecall(void);
void MemoryStore(void);
/* For use with XModem */
bool MemoryUploadBlock(void* Buffer, uint32_t BlockAddress, uint16_t ByteCount);
bool MemoryDownloadBlock(void* Buffer, uint32_t BlockAddress, uint16_t ByteCount);
#endif /* __ASSEMBLER__ */
#endif /* MEMORY_H_ */