Ignore:
Timestamp:
Jul 8, 2015, 3:57:15 PM (9 years ago)
Author:
alain
Message:

Modify all applications to support two new rules:
1) introduce a local Makefile for each application.
2) change "application.elf" name to "application/appli.elf" name in the application.py" file.
Introduce the shell application.

File:
1 edited

Legend:

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

    r574 r589  
    1616#define NLINES      256
    1717#define NIMAGES     1                 
    18 #define NBLOCKS     (NPIXELS*NLINES/512)   // number of blocks per image
    1918
    2019#define INTERACTIVE 1
     
    6968    {
    7069        // load buf0
    71         giet_fat_read( fd, buf0, NBLOCKS, image*NBLOCKS );
     70        giet_fat_read( fd, buf0, NPIXELS*NLINES );
    7271
    7372        giet_tty_printf("\n[DISPLAY] Proc[%d,%d,%d] load image %d at cycle %d\n",
     
    8584
    8685        // load buf1
    87         giet_fat_read( fd, buf1, NBLOCKS, image*NBLOCKS );
     86        giet_fat_read( fd, buf1, NPIXELS*NLINES );
    8887
    8988        giet_tty_printf("\n[DISPLAY] Proc[%d,%d,%d] load image %d at cycle %d\n",
Note: See TracChangeset for help on using the changeset viewer.