From a07ee5d1ce0e6c0f5e53a04afed88a96b323177a Mon Sep 17 00:00:00 2001 From: travisutk Date: Tue, 22 Sep 2009 16:46:46 +0000 Subject: [PATCH] Larger chunk-size in SPI Flash, but not yet large enough. Write performance still sucks. Also, Makefile now compiles html documentation and posts to the webserver. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@152 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/goodfet.spiflash | 3 +-- firmware/Makefile | 5 +++++ firmware/apps/spi/spi.c | 8 ++++---- hardware/Makefile | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/client/goodfet.spiflash b/client/goodfet.spiflash index 7aa287d..7a187db 100755 --- a/client/goodfet.spiflash +++ b/client/goodfet.spiflash @@ -126,13 +126,12 @@ if(sys.argv[1]=="flash"): i=start; chars=list(file.read()); - chunksize=0x80; + chunksize=0xfc; while i<=stop: bytes=range(0,chunksize); for j in range(0,chunksize): bytes[j]=ord(chars[i+j]); - #client.SPIpokebyte(i,ord(chars[i])); client.SPIpokebytes(i,bytes); i+=chunksize; diff --git a/firmware/Makefile b/firmware/Makefile index 3220c1a..f6a221b 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -50,3 +50,8 @@ erase: $(BSL) -e clean: rm -f $(app) $(app).hex $(libs) $(apps) +docs: + doxygen +pushdocs: docs + rsync --exclude .svn -ave ssh doc/html/* travisutk,goodfet@web.sourceforge.net:htdocs/docs/ +.FAKE: docs diff --git a/firmware/apps/spi/spi.c b/firmware/apps/spi/spi.c index 94fbf0e..536dec0 100644 --- a/firmware/apps/spi/spi.c +++ b/firmware/apps/spi/spi.c @@ -222,16 +222,16 @@ void spihandle(unsigned char app, spiflash_setstatus(0x02); spiflash_wrten(); - P5OUT&=~SS; //Drop !SS to begin transaction. - spitrans8(0x02); //Poke command. + P5OUT&=~SS; //Drop !SS to begin transaction. + spitrans8(0x02); //Poke command. //First three bytes are address, then data. for(i=0;i