Module for the cc2538 Coffee port.
More...
|
typedef int16_t | coffee_page_t |
| Page.
|
|
|
#define | COFFEE_SECTOR_SIZE FLASH_PAGE_SIZE |
| Logical sector size.
|
|
#define | COFFEE_PAGE_SIZE (COFFEE_SECTOR_SIZE / 8) |
| Logical page size.
|
|
#define | COFFEE_START CC2538_DEV_FLASH_ADDR |
| Start offset of the file system.
|
|
#define | COFFEE_SIZE 0 |
| Total size in bytes of the file system.
|
|
#define | COFFEE_NAME_LENGTH 40 |
| Maximal filename length.
|
|
#define | COFFEE_MAX_OPEN_FILES 5 |
| Number of file cache entries.
|
|
#define | COFFEE_FD_SET_SIZE 5 |
| Number of file descriptor entries.
|
|
#define | COFFEE_LOG_TABLE_LIMIT 16 |
| Maximal amount of log table entries read in one batch.
|
|
#define | COFFEE_DYN_SIZE (COFFEE_SECTOR_SIZE - 50) |
| Default reserved file size.
|
|
#define | COFFEE_LOG_SIZE (4 * COFFEE_PAGE_SIZE) |
| Default micro-log size.
|
|
#define | COFFEE_MICRO_LOGS 0 |
| Whether Coffee will use micro logs.
|
|
#define | COFFEE_APPEND_ONLY 1 |
| Whether files are expected to be appended to only.
|
|
Module for the cc2538 Coffee port.
◆ cfs_coffee_arch_read()
void cfs_coffee_arch_read |
( |
void * |
buf, |
|
|
unsigned int |
size, |
|
|
cfs_offset_t |
offset |
|
) |
| |
Reads from the device to a buffer.
- Parameters
-
buf | Pointer to the buffer |
size | Byte size of the buffer |
offset | Device offset to read from |
Definition at line 131 of file cfs-coffee-arch.c.
◆ cfs_coffee_arch_write()
void cfs_coffee_arch_write |
( |
const void * |
buf, |
|
|
unsigned int |
size, |
|
|
cfs_offset_t |
offset |
|
) |
| |
Writes a buffer to the device.
- Parameters
-
buf | Pointer to the buffer |
size | Byte size of the buffer |
offset | Device offset to write to |
Definition at line 86 of file cfs-coffee-arch.c.