Changeset 712 for soft/giet_vm/applications/display/display.c
- Timestamp:
- Oct 7, 2015, 11:56:33 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/display/display.c
r708 r712 10 10 11 11 #include <stdio.h> 12 #include <stdlib.h> 12 13 #include <hard_config.h> // To check Frame Buffer size 13 14 … … 37 38 int fd; 38 39 unsigned int image = 0; 40 char byte; 41 unsigned int fbuf_x_size; 42 unsigned int fbuf_y_size; 39 43 40 char byte; 41 42 // parameters checking 43 if ( (NPIXELS != FBUF_X_SIZE) || (NLINES != FBUF_Y_SIZE) ) 44 { 45 giet_pthread_exit("[DISPLAY ERROR] Frame buffer size does not fit image size"); 46 } 44 // checking frame buffer size 45 giet_fbf_size( &fbuf_x_size , &fbuf_y_size ); 46 giet_pthread_assert( ((NPIXELS == fbuf_x_size) && (NLINES == fbuf_y_size)), 47 "[DISPLAY ERROR] Frame buffer size does not fit image size"); 47 48 48 49 // get a private TTY … … 62 63 giet_tty_printf("\n[DISPLAY] P[%d,%d,%d] open file %s at cycle %d\n", 63 64 x, y, p, FILENAME, giet_proctime() ); 65 66 // get Frame Buffer ownership 67 giet_fbf_alloc(); 64 68 65 69 // get a Chained Buffer DMA channel
Note: See TracChangeset
for help on using the changeset viewer.