This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Atmel DataFlash driver
- From: Savin Zlobec <savin at elatec dot si>
- To: ecos-devel at sources dot redhat dot com
- Date: Tue, 07 Sep 2004 16:51:08 +0200
- Subject: Atmel DataFlash driver
Attached is the development version of DataFlash driver, here are some
of its features:
- DataFlash specific access API (<cyg/io/dataflash.h>)
- Flash_v2 device support - page sizes set to 2^n (trailing bytes
unused), no page regeneration support
- Supports AT45DBxxxx parts
This is just the driver - no platform specific configs. It can be
accessed directly through
the <cyg/io/dataflash.h> API or through IO_Flash (requires flash_v2) by
implementing
CYGPKG_DEVS_FLASH_ATMEL_DATAFLASH_FLASH_DEV and
using CYG_DATAFLASH_FLASH_DRIVER macro.
Something like this in eb55_flash.c (don't forget to compile it into
libextras):
#define _FLASH_PRIVATE_
#include <cyg/io/dataflash.h>
CYG_DATAFLASH_FLASH_DRIVER(cyg_dataflash_dev0, cyg_spi_dataflash_dev0,
0x01200000, 0, -1);
...
savin
Attachment:
dataflash.tgz
Description: application/compressed-tar