Go to the documentation of this file.
41 #ifndef CFS_COFFEE_ARCH_H
42 #define CFS_COFFEE_ARCH_H
55 #define COFFEE_XMEM_TOTAL_SIZE_KB 2048UL //Total size of the External Flash Memory in the Z1
58 #define COFFEE_SECTOR_SIZE 65536UL
59 #define COFFEE_PAGE_SIZE 128UL
60 #define COFFEE_START COFFEE_SECTOR_SIZE*2
61 #define COFFEE_SIZE (COFFEE_XMEM_TOTAL_SIZE_KB * 1024UL - COFFEE_START)
62 #define COFFEE_NAME_LENGTH 6
63 #define COFFEE_MAX_OPEN_FILES 1 // Low on RAM - don't bother caching any files
64 #define COFFEE_FD_SET_SIZE 1 // We only open 1 file at a time
65 #define COFFEE_LOG_TABLE_LIMIT 0
66 #define COFFEE_DYN_SIZE 120
67 #define COFFEE_LOG_SIZE 0
69 #define COFFEE_MICRO_LOGS 0
70 #define COFFEE_SMALL_HEADERS 1
71 #define COFFEE_IO_SEMANTICS 1
74 #define COFFEE_WRITE(buf, size, offset) \
75 xmem_pwrite((char *)(buf), (size), COFFEE_START + (offset))
77 #define COFFEE_READ(buf, size, offset) \
78 xmem_pread((char *)(buf), (size), COFFEE_START + (offset))
80 #define COFFEE_ERASE(sector) \
81 xmem_erase(COFFEE_SECTOR_SIZE, COFFEE_START + (sector) * COFFEE_SECTOR_SIZE)
int16_t coffee_page_t
Page.