Skip to content

Commit

Permalink
Still not perfect buit getting there.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlohr committed Dec 27, 2017
1 parent 0a79e40 commit e23dce7
Show file tree
Hide file tree
Showing 61 changed files with 37,958 additions and 11 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,6 @@ Now to figure out why the data's all wrong. I was just being dumb. Data went w

Ok, got rid of a ton of stuff from Cypress. Still more to get rid of. But man this is curising along well. About 1% or less CPU utilization at 256 MB/sec.

MOVING OVER TO THE USB SIDE

The GPIF designer is pretty easy to use. Took a bit to get the hang of it, but I think I can make something with a data buffer, and one state that just does a ton of data in.
7 changes: 4 additions & 3 deletions isotest/charles-streamer/teststream.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ int callback( void * id, struct CyprIOEndpoint * ep, uint8_t * data, uint32_t le
{
bytes += length;
double Now = OGGetAbsoluteTime();
if( data[0] != 0xaa ) printf( "Bad data\n" );
//if( data[0] != 0xaa ) printf( "Bad data\n" );

//printf( "%d %02x %02x\n", length, data[0], data[100] );
if( Last + 1 < Now )
{
printf( "Got %.3f KB/s\n", bytes/1024 );
printf( "Got %.3f KB/s [%02x %02x]\n", bytes/1024, data[0], data[1] );
Last++;
bytes = 0;
}
Expand Down Expand Up @@ -76,7 +77,7 @@ int main()
}

#else
Last = OGGetAbsoluteTime();
Last = OGGetAbsoluteTime();

CyprIODoCircularDataXfer( &eps.CypIOEndpoints[0], 65536*16, 8, callback, 0 );

Expand Down
Binary file modified isotest/charles-streamer/teststream.exe
Binary file not shown.
Loading

0 comments on commit e23dce7

Please sign in to comment.