This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
flash base mask question
- From: John Newlin <jnewlin at rawbw dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 12 Nov 2003 10:07:50 -0800 (PST)
- Subject: [ECOS] flash base mask question
In file:
/packages/devs/flash/arm/uE250/current/include/uE250_stratflash.inl
There is a line that says:
#define CYGNUM_FLASH_BASE_MASK (0xFC000000u) // 32Mb total
First question:
Does Mb stand for Megabit or MegaByte?
If Megabyte should the number not be?
~(1024*1024*32-1) which is: 0xfe00_0000 ( i wish c did underscore in
numbers like verilog)
If it is megaBIT then it would it not be:
~(32/8*1024*1024) which is: 0xffc0_0000
Or maybe the mask is per device? There are 2 of these 32MB devices, which
would then make a total of 64MB and then the mask would make sense to my
simple brain.
If the numbers in the file are indeed correct, can someone please explain
to me how to derive the mask so that I can put the correct mask for my
device?
thanks
-john
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss