61 #define MEMORY_FLASH_USART USARTD0
62 #define MEMORY_FLASH_PORT PORTD
63 #define MEMORY_FLASH_CS PIN4_bm
64 #define MEMORY_FLASH_MOSI PIN3_bm
65 #define MEMORY_FLASH_MISO PIN2_bm
66 #define MEMORY_FLASH_SCK PIN1_bm
68 #define MEMORY_PAGE_SIZE 256
69 #define MEMORY_SIZE_PER_SETTING ((uint32_t) 256 * MEMORY_PAGE_SIZE)
71 void MemoryInit(
void);
72 void MemoryReadBlock(
void* Buffer, uint16_t Address, uint16_t ByteCount);
73 void MemoryWriteBlock(
const void* Buffer, uint16_t Address, uint16_t ByteCount);
74 void MemoryClear(
void);
77 bool MemoryUploadBlock(
void* Buffer, uint32_t BlockAddress, uint16_t ByteCount);
78 bool MemoryDownloadBlock(
void* Buffer, uint32_t BlockAddress, uint16_t ByteCount);