Changeset 297 for soft/giet_vm/display/main.c
- Timestamp:
- Mar 28, 2014, 10:48:51 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/display/main.c
r295 r297 24 24 /////////////////////////////////////////// 25 25 fd = giet_fat_open( "misc/images.raw", 0 ); 26 if ( fd < 0 ) 27 { 28 giet_tty_printf("\n*** echec giet_fat_open for misc/images.raw at cycle %d\n", 29 giet_proctime() ); 30 giet_exit(); 31 } 32 else 33 { 34 giet_tty_printf("\ngiet_fat_open completed for misc/images.raw at cycle %d\n", 35 giet_proctime() ); 36 } 26 if ( fd < 0 ) giet_exit("echec giet_fat_open for misc/images.raw"); 27 28 giet_tty_printf("\ngiet_fat_open completed for misc/images.raw at cycle %d\n", 29 giet_proctime() ); 37 30 38 31 ///////////////////////////////////////// … … 40 33 { 41 34 // lecture image sur le disque 42 blocks = giet_fat_read( fd, buf, NBLOCKS, blocks_to_skip ); 43 if ( blocks != NBLOCKS ) 44 { 45 giet_tty_printf("\n*** echec giet_fat_read at cycle %d\n", 46 giet_proctime() ); 47 giet_exit(); 48 } 49 else 50 { 51 giet_tty_printf("\ngiet_fat_read for image %d completed at cycle %d \n", 52 (blocks_to_skip>>5), giet_proctime()); 53 } 35 giet_fat_read( fd, buf, NBLOCKS, blocks_to_skip ); 36 37 giet_tty_printf("\ngiet_fat_read for image %d completed at cycle %d \n", 38 (blocks_to_skip>>5), giet_proctime()); 54 39 55 40 // transfert vers le frame buffer 56 ko = giet_fb_sync_write( 0, buf, 128 * 128 ); 57 if ( ko ) 58 { 59 giet_tty_printf("\n*** echec giet_fb_sync_write at cycle %d\n", 60 giet_proctime() ); 61 giet_exit(); 62 } 63 else 64 { 65 giet_tty_printf("\ndisplay completed for image %d at cycle %d \n", 66 (blocks_to_skip>>5), giet_proctime()); 67 } 41 giet_fb_sync_write( 0, buf, 128 * 128 ); 42 43 giet_tty_printf("\ndisplay completed for image %d at cycle %d \n", 44 (blocks_to_skip>>5), giet_proctime()); 68 45 69 46 blocks_to_skip = blocks_to_skip + NBLOCKS; 70 47 } 71 48 72 giet_tty_printf("\n*** Tak display exit at cycle %d ***\n", giet_proctime()); 73 giet_exit(); 49 giet_exit("completed"); 74 50 }
Note: See TracChangeset
for help on using the changeset viewer.