Files
2016-10-07 23:44:50 +02: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 8192
#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_ */