This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]