Larger chunk-size in SPI Flash, but not yet large enough. Write performance still...
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Tue, 22 Sep 2009 16:46:46 +0000 (16:46 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Tue, 22 Sep 2009 16:46:46 +0000 (16:46 +0000)
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
firmware/Makefile
firmware/apps/spi/spi.c
hardware/Makefile

index 7aa287d..7a187db 100755 (executable)
@@ -126,13 +126,12 @@ if(sys.argv[1]=="flash"):
 
     i=start;
     chars=list(file.read());
 
     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]);
     
     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;
         client.SPIpokebytes(i,bytes);
         
         i+=chunksize;
index 3220c1a..f6a221b 100644 (file)
@@ -50,3 +50,8 @@ erase:
        $(BSL) -e 
 clean:
        rm -f $(app) $(app).hex $(libs) $(apps)
        $(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
index 94fbf0e..536dec0 100644 (file)
@@ -222,16 +222,16 @@ void spihandle(unsigned char app,
     spiflash_setstatus(0x02);
     spiflash_wrten();
     
     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<len;i++)
       spitrans8(cmddata[i]);
     
     //First three bytes are address, then data.
     for(i=0;i<len;i++)
       spitrans8(cmddata[i]);
-    P5OUT|=SS;  //Raise !SS to end transaction.
+    P5OUT|=SS;          //Raise !SS to end transaction.
     
     
     
     
-    while(spiflash_status()&0x01)//while busy
+    while(spiflash_status()&0x01)
       P1OUT^=1;
     P1OUT&=~1;
     
       P1OUT^=1;
     P1OUT&=~1;
     
index c590d71..c923658 100644 (file)
@@ -1,3 +1,3 @@
 ~/Desktop/goodfet11.zip: *.sch *.brd *.G* *.TXT
        rm -f *.GBO
 ~/Desktop/goodfet11.zip: *.sch *.brd *.G* *.TXT
        rm -f *.GBO
-       zip ~/Desktop/goodfet20.zip *.sch *.brd *.g* *.G* *.TXT BOM.txt
+       zip ~/Desktop/goodfet30.zip *.sch *.brd *.g* *.G* *.TXT BOM.txt