40#ifndef CFS_COFFEE_ARCH_H
41#define CFS_COFFEE_ARCH_H
56#define COFFEE_XMEM_TOTAL_SIZE_KB 1024UL
59#define COFFEE_SECTOR_SIZE 4096UL
60#define COFFEE_PAGE_SIZE 256UL
61#define COFFEE_START 0UL
62#define COFFEE_SIZE (COFFEE_XMEM_TOTAL_SIZE_KB * 1024UL - COFFEE_START)
63#define COFFEE_NAME_LENGTH 16
64#define COFFEE_MAX_OPEN_FILES 6
65#define COFFEE_FD_SET_SIZE 8
66#define COFFEE_LOG_TABLE_LIMIT 256
67#define COFFEE_DYN_SIZE 2 * 1024
68#define COFFEE_LOG_SIZE 1024
70#define COFFEE_MICRO_LOGS 1
73#define COFFEE_WRITE(buf, size, offset) \
74 xmem_pwrite((char *)(buf), (size), COFFEE_START + (offset))
76#define COFFEE_READ(buf, size, offset) \
77 xmem_pread((char *)(buf), (size), COFFEE_START + (offset))
79#define COFFEE_ERASE(sector) \
80 xmem_erase(COFFEE_SECTOR_SIZE, COFFEE_START + (sector) * COFFEE_SECTOR_SIZE)
int16_t coffee_page_t
Page.
Header file to the external flash memory (XMem) API.
Configuration for the Zoul-based platforms.