Changeset 589 for soft/giet_vm/applications/display
- Timestamp:
- Jul 8, 2015, 3:57:15 PM (9 years ago)
- Location:
- soft/giet_vm/applications/display
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/display/Makefile
r191 r589 1 APP_NAME=display2 1 3 USE+= stdio.o 4 5 USES=$(patsubst %,$(BUILD_PATH)/$(LIB_NAME)/%,$(USE)) 2 APP_NAME = display 6 3 7 4 OBJS= main.o 8 5 9 all: $(APP_NAME).elf 6 LIBS= -L../../build/libs -luser 10 7 11 BIN_NAME_PATH=$(BUILD_PATH)$(APP_NAME).elf 8 INCLUDES = -I../../giet_libs -I. -I../.. 12 9 13 $(APP_NAME).elf: $(OBJS) $(APP_NAME).ld 14 $(LD) -o $(BIN_NAME_PATH) -T $(APP_NAME).ld $(OBJS) $(USES) 15 $(DU) -D $(BIN_NAME_PATH) > $@.txt 10 LIB_DEPS = ../../build/libs/libuser.a 11 12 appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) 13 $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS) 14 $(DU) -D $@ > $@.txt 16 15 17 16 %.o: %.c 18 $(CC) $(INCLUDE) $(CFLAGS) $($*.o_CFLAGS) -c -o $@ $< 19 $(DU) -D $@ > $@.txt 20 17 $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< 21 18 22 19 clean: 23 rm -f *.o *.elf *.txt core *~ 2>$(TRASH) 24 rm $(BIN_NAME_PATH) 2>$(TRASH) 20 rm -f *.o *.elf *.txt core *~ -
soft/giet_vm/applications/display/display.py
r574 r589 13 13 14 14 ###################### 15 def display( mapping ):15 def extend( mapping ): 16 16 17 17 nprocs = mapping.nprocs … … 38 38 mapping.addVseg( vspace, 'disp_data', data_base , data_size, 39 39 'C_WU', vtype = 'ELF', x = 0, y = 0, pseg = 'RAM', 40 binpath = 'build/display/ display.elf',40 binpath = 'build/display/appli.elf', 41 41 local = False ) 42 42 … … 44 44 mapping.addVseg( vspace, 'disp_code', code_base , code_size, 45 45 'CXWU', vtype = 'ELF', x = 0, y = 0, pseg = 'RAM', 46 binpath = 'build/display/ display.elf',46 binpath = 'build/display/appli.elf', 47 47 local = False ) 48 48 … … 69 69 if __name__ == '__main__': 70 70 71 vspace = display( Mapping( 'test', 2, 2, 4 ) )71 vspace = extend( Mapping( 'test', 2, 2, 4 ) ) 72 72 print vspace.xml() 73 73 -
soft/giet_vm/applications/display/main.c
r574 r589 16 16 #define NLINES 256 17 17 #define NIMAGES 1 18 #define NBLOCKS (NPIXELS*NLINES/512) // number of blocks per image19 18 20 19 #define INTERACTIVE 1 … … 69 68 { 70 69 // load buf0 71 giet_fat_read( fd, buf0, N BLOCKS, image*NBLOCKS );70 giet_fat_read( fd, buf0, NPIXELS*NLINES ); 72 71 73 72 giet_tty_printf("\n[DISPLAY] Proc[%d,%d,%d] load image %d at cycle %d\n", … … 85 84 86 85 // load buf1 87 giet_fat_read( fd, buf1, N BLOCKS, image*NBLOCKS );86 giet_fat_read( fd, buf1, NPIXELS*NLINES ); 88 87 89 88 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.