osd-contiki/examples/cfs-coffee
Benoît Thébaudeau 003b4b0d63 test-coffee: Fix the file modification test
The r variable was used instead of i to fill the buffer, resulting in
the end of the test loop after only a single iteration. The file was not
even closed at the end of each iteration although it is opened at the
beginning of each iteration, so the available file descriptors would
very quickly be exhausted.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
2016-05-30 23:05:13 +02:00
..
example-coffee.c cfs-coffee: examples: Fix coding style 2016-05-30 23:05:12 +02:00
Makefile Make CFS and Coffee examples platform-independent 2016-05-30 23:05:12 +02:00
README.md Make CFS and Coffee examples platform-independent 2016-05-30 23:05:12 +02:00
test-cfs.c test-cfs: Fix possible test failure after reboot 2016-05-30 23:05:12 +02:00
test-coffee.c test-coffee: Fix the file modification test 2016-05-30 23:05:13 +02:00

Contiki File System (CFS) and Coffee Examples

Coffee is a very simple, relatively small and easy to use file system that you are most likely going to be very familiar with if you have done any C file access in the past. The notion is the same as on a normal PC: you open a file, read and write to it and close it. Contiki will take care of the underlying flash memory, giving you more time to focus on the real issues.

Coffee is a full implementation of the CFS API.

An extended explanation on CFS and Coffee internals and how they work can be found at the CFS and Coffee wiki pages.

Supported Hardware (tested or known to work)

  • sky
  • z1
  • wismote
  • avr-raven

The examples are known to build for the 'avr-raven' platform. However, some of them currently fail at runtime due to file system overflow. Tweaking the file sizes in the examples is necessary.