Changeset 297 for soft/giet_vm/display/main_cma.c
- Timestamp:
- Mar 28, 2014, 10:48:51 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/display/main_cma.c
r295 r297 20 20 x, y, lpid, giet_proctime() ); 21 21 22 //////////////////////////////////////////23 22 fd = giet_fat_open( "misc/images.raw", 0 ); 24 if ( fd < 0 ) 25 { 26 giet_tty_printf("\n*** echec giet_fat_open for misc/images.raw at cycle %d\n", 27 giet_proctime() ); 28 giet_exit(); 29 } 30 else 31 { 32 giet_tty_printf("\ngiet_fat_open completed for misc/images.raw at cycle %d\n", 33 giet_proctime() ); 34 } 23 if ( fd < 0 ) giet_exit("echec giet_fat_open for misc/images.raw"); 35 24 36 //////////////////////////////////////// 25 giet_tty_printf("\ngiet_fat_open completed for misc/images.raw at cycle %d\n", 26 giet_proctime() ); 27 37 28 giet_fb_cma_init( buf0, buf1, 128*128 ); 38 29 … … 42 33 while ( blocks_to_skip < 10 * NBLOCKS ) 43 34 { 44 ///////////////////////////////////////////////////45 35 giet_fat_read( fd, buf0, NBLOCKS, blocks_to_skip ); 46 36 … … 48 38 giet_proctime() ); 49 39 50 ///////////////////////51 40 giet_fb_cma_write( 0 ); 52 41 … … 56 45 blocks_to_skip = blocks_to_skip + NBLOCKS; 57 46 58 ///////////////////////////////////////////////////59 47 giet_fat_read( fd, buf1, NBLOCKS, blocks_to_skip ); 60 48 … … 62 50 giet_proctime() ); 63 51 64 ///////////////////////65 52 giet_fb_cma_write( 1 ); 66 53 … … 71 58 } 72 59 73 ///////////////////74 60 giet_fb_cma_stop(); 75 61 76 giet_tty_printf("\n*** Task display exit at cycle %d ***\n", giet_proctime()); 77 78 giet_exit(); 62 giet_exit("display completed"); 79 63 }
Note: See TracChangeset
for help on using the changeset viewer.