Files

38 lines
964 B
C
Raw Permalink Normal View History

2016-10-07 23:44:50 +02:00
/*
* 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);
2019-11-15 10:21:40 +01:00
void MemoryReadBlock(void *Buffer, uint16_t Address, uint16_t ByteCount);
void MemoryWriteBlock(const void *Buffer, uint16_t Address, uint16_t ByteCount);
2016-10-07 23:44:50 +02:00
void MemoryClear(void);
void MemoryRecall(void);
void MemoryStore(void);
/* For use with XModem */
2019-11-15 10:21:40 +01:00
bool MemoryUploadBlock(void *Buffer, uint32_t BlockAddress, uint16_t ByteCount);
bool MemoryDownloadBlock(void *Buffer, uint32_t BlockAddress, uint16_t ByteCount);
2016-10-07 23:44:50 +02:00
/* EEPROM functions */
uint16_t WriteEEPBlock(uint16_t Address, const void *SrcPtr, uint16_t ByteCount);
uint16_t ReadEEPBlock(uint16_t Address, void *DestPtr, uint16_t ByteCount);
2016-10-07 23:44:50 +02:00
#endif /* __ASSEMBLER__ */
#endif /* MEMORY_H_ */