Contiki-NG
|
storage driver for the gecko. More...
#include "contiki.h"
#include "cfs/cfs-coffee.h"
#include "em_device.h"
#include "em_msc.h"
#include <stdint.h>
Go to the source code of this file.
Macros | |
Coffee port constants | |
#define | COFFEE_SECTOR_SIZE (FLASH_PAGE_SIZE) |
#define | COFFEE_PAGE_SIZE (FLASH_PAGE_SIZE / 8) |
#define | COFFEE_SIZE 0 |
#define | COFFEE_NAME_LENGTH (18) |
#define | COFFEE_MAX_OPEN_FILES (6) |
#define | COFFEE_FD_SET_SIZE (8) |
#define | COFFEE_LOG_TABLE_LIMIT (256) |
#define | COFFEE_DYN_SIZE (2 * 1024) |
#define | COFFEE_LOG_SIZE (1024) |
#define | COFFEE_MICRO_LOGS (1) |
#define | COFFEE_APPEND_ONLY (0) |
Coffee port macros | |
#define | COFFEE_ERASE(sector) cfs_coffee_arch_erase(sector) |
Erase. | |
#define | COFFEE_WRITE(buf, size, offset) cfs_coffee_arch_write((buf), (size), (offset)) |
Write. | |
#define | COFFEE_READ(buf, size, offset) cfs_coffee_arch_read((buf), (size), (offset)) |
Read. | |
Typedefs | |
Coffee port types | |
typedef int16_t | coffee_page_t |
Page. | |
Functions | |
void | cfs_coffee_arch_erase (uint16_t sector) |
Erases a device sector. More... | |
void | cfs_coffee_arch_write (const void *buf, unsigned int size, cfs_offset_t offset) |
Writes a buffer to the device. More... | |
void | cfs_coffee_arch_read (void *buf, unsigned int size, cfs_offset_t offset) |
Reads from the device to a buffer. More... | |
storage driver for the gecko.
Definition in file cfs-coffee-arch.h.