Skip to content
Snippets Groups Projects
Commit 4406f84f authored by Patrick Robbe's avatar Patrick Robbe
Browse files

Try to restart stream

parent bb284691
Branches
Tags
1 merge request!56links
......@@ -343,7 +343,19 @@ int pcie40_writestream( int dev , int ch , char * filename ) {
// Read the file
int c = 0 ;
int count = 0 ;
while ((c = getc(fp)) != EOF) {
count++ ;
if ( count == 7 ) {
printf( "Insert stop/start\n" ) ;
data_word_1 = 0xEEEE ;
ret = ecs_write( dev , SLC_BAR , SLC_WFIFO_ADD + ch * 0x20 ,
(int) ( data_word_1 & 0xFFFFFFFF ) ) ;
data_word_1 = 0xFFFD ;
ret = ecs_write( dev , SLC_BAR , SLC_WFIFO_ADD + ch * 0x20 ,
(int) ( data_word_1 & 0xFFFFFFFF ) ) ;
}
ret = ecs_write( dev , SLC_BAR , SLC_WFIFO_ADD + ch * 0x20 ,
(int) ( ( ( 0x70 << 8 ) | ( c & 0xFF ) ) &
0xFFFFFFFF ) ) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment