- Cleanedup toolchain

Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/


git-svn-id: http://moon:8086/svn/vhdl/trunk@381 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2009-03-14 17:19:29 +00:00
parent 5f24a7e1dc
commit 58f704112c
15 changed files with 184 additions and 329 deletions
+11
View File
@@ -20,6 +20,17 @@ UINT32 cfi_get_status(flash_t *pObj)
}
UINT32 flash_get_nextblock(flash_t *pObj, UINT32 offset)
{
UINT32 blocknum;
blocknum = offset/pObj->info.blocksize;
if (offset%pObj->info.blocksize)
blocknum++;
return blocknum*pObj->info.blocksize;
}
void cfi_init(flash_t *pObj, UINT32 base_addr)
{
int i;