41 #ifndef CFS_COFFEE_ARCH_H
42 #define CFS_COFFEE_ARCH_H
44 #include "contiki-conf.h"
53 #define COFFEE_PAGE_SIZE XMEM_PAGE_SIZE
54 #define COFFEE_SECTOR_SIZE XMEM_SECTOR_SIZE
55 #define COFFEE_NUM_SECTORS XMEM_NUM_SECTORS
56 #define COFFEE_START 0
57 #define COFFEE_SIZE XMEM_NUM_SECTORS * XMEM_SECTOR_SIZE
58 #define COFFEE_NAME_LENGTH 64
59 #define COFFEE_MAX_OPEN_FILES 6
60 #define COFFEE_FD_SET_SIZE 8
62 #define COFFEE_LOG_TABLE_LIMIT 256
63 #define COFFEE_DYN_SIZE 4 * 1024
64 #define COFFEE_LOG_SIZE 1024
65 #define COFFEE_MICRO_LOGS 1
68 #define COFFEE_WRITE(buf, size, offset) \
69 xmem_pwrite((char *)(buf), (size), COFFEE_START + (offset))
71 #define COFFEE_READ(buf, size, offset) \
72 xmem_pread((char *)(buf), (size), COFFEE_START + (offset))
74 #define COFFEE_ERASE(sector) \
75 xmem_erase(COFFEE_SECTOR_SIZE, COFFEE_START + (sector) * COFFEE_SECTOR_SIZE)
78 typedef int16_t coffee_page_t;
Xmem settings for the Mulle platform.