This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
FLASH ATMEL AT49xxxxx and minor error
- To: <ecos-discuss at sources dot redhat dot com>
- Subject: [ECOS] FLASH ATMEL AT49xxxxx and minor error
- From: "Jose Pascual" <josepascual at almudi dot com>
- Date: Thu, 25 Oct 2001 13:36:02 +0200
- Reply-To: <josepascual at almudi dot com>
Hi,
I have quasi-finished an atmel at49xxx flash series packet for ecos.
this flash device is quite similar to amd flash devices. I'm doing this
new packet from generic amd flash packet, but I forgot to ask first
if this packet exist.
is already it released?
during my work i have found a minor error:
in file, ecos\packages\io\flash\current\include\flash_devs.h
#elif 16 == CYGNUM_FLASH_WIDTH
# if 1 == CYGNUM_FLASH_INTERLEAVE
# define FLASHWORD( k ) (k)
typedef cyg_uint16 flash_data_t;
# elif 2 == CYGNUM_FLASH_INTERLEAVE
// 2 devices to make 32-bit
# define FLASHWORD( k ) ((k)+((k)<<16))
typedef cyg_uint32 flash_data_t;
# elif 2 == CYGNUM_FLASH_INTERLEAVE
// 4 devices to make 64-bit - intermediate requires explicit widening
# define FLASHWORD32( k ) ((flash_data_t)((k)+((k)<<16)))
# define FLASHWORD( k ) (FLASHWORD32( k ) + (FLASHWORD32( k ) << 32));
typedef cyg_uint64 flash_data_t;
# else
# error How many 16-bit flash devices?
# endif
for 64-bit, CYGNUM_FLASH_INTERLEAVE should be 4, shouldn't it?
tia!
regards