Changeset 169 for soft/giet_vm/apps/display/main.c
- Timestamp:
- Jul 17, 2012, 2:39:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/apps/display/main.c
r168 r169 9 9 unsigned char buf_out[128*128]; 10 10 unsigned int i; 11 unsigned int x; 11 12 unsigned int base = 0; 12 13 … … 18 19 19 20 /* Phase 1 : lecture image sur le disque et transfert vers buf_in */ 20 if (giet_ioc_read(base, buf_in, NBLOCS)) 21 x = giet_ioc_read(base, buf_in, NBLOCS); 22 if ( x ) 21 23 { 22 giet_tty_printf("echec giet_ioc_read \n");24 giet_tty_printf("echec giet_ioc_read : %d\n", x); 23 25 giet_exit(); 24 26 } 25 else 27 x = giet_ioc_completed(); 28 if ( x ) 26 29 { 27 giet_ ioc_completed();28 giet_ tty_printf("io_read completed at date = %d \n", giet_proctime());30 giet_tty_printf("echec giet_ioc_completed : %d\n", x); 31 giet_exit(); 29 32 } 33 giet_tty_printf("io_read completed at date = %d \n", giet_proctime()); 30 34 31 35 /* Phase 2 : transfert de buf_in vers buf_out avec seuillage */ … … 40 44 41 45 /* Phase 3 : transfert de buf_out vers le frame buffer par dma */ 42 if (giet_fb_sync_write(0, buf_out, 128 * 128)) 46 x = giet_fb_write(0, buf_out, 128 * 128); 47 if ( x ) 43 48 { 44 giet_tty_printf("echec giet_fb_write \n");49 giet_tty_printf("echec giet_fb_write : %d\n", x); 45 50 giet_exit(); 46 51 } 47 else 52 x = giet_fb_completed(); 53 if ( x ) 48 54 { 49 giet_tty_printf("transfer completed at date = %d \n", giet_proctime()); 55 giet_tty_printf("echec giet_fb_completed : %d\n", x); 56 giet_exit(); 50 57 } 58 giet_tty_printf("transfer completed at date = %d \n", giet_proctime()); 51 59 52 60 base = base + NBLOCS;
Note: See TracChangeset
for help on using the changeset viewer.