Ignore:
Timestamp:
Jul 17, 2012, 2:39:10 PM (12 years ago)
Author:
alain
Message:

Introducing support for FBDMA (Frame Buffer using DMA)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/apps/display/main.c

    r168 r169  
    99    unsigned char buf_out[128*128];
    1010    unsigned int i;
     11    unsigned int x;
    1112    unsigned int base = 0;
    1213
     
    1819
    1920        /* 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 )
    2123        {
    22             giet_tty_printf("echec giet_ioc_read\n");
     24            giet_tty_printf("echec giet_ioc_read : %d\n", x);
    2325            giet_exit();
    2426        }
    25         else
     27        x = giet_ioc_completed();
     28        if ( x )
    2629        {
    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();
    2932        }
     33        giet_tty_printf("io_read  completed at date = %d \n", giet_proctime());
    3034
    3135        /* Phase 2 : transfert de buf_in vers buf_out avec seuillage */
     
    4044
    4145        /* 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 )
    4348        {
    44             giet_tty_printf("echec giet_fb_write\n");
     49            giet_tty_printf("echec giet_fb_write : %d\n", x);
    4550            giet_exit();
    4651        }
    47         else
     52        x = giet_fb_completed();
     53        if ( x )
    4854        {
    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();
    5057        }
     58        giet_tty_printf("transfer completed at date = %d \n", giet_proctime());
    5159
    5260        base = base + NBLOCS;
Note: See TracChangeset for help on using the changeset viewer.