#include "stdio.h" #include "hard_config.h" #define NBLOCKS 32 // (128 * 128) / 512 unsigned char buf[128*128] __attribute__((aligned(512))); __attribute__((constructor)) void main() { int fd; int blocks; unsigned int ko; unsigned int blocks_to_skip = 8*NBLOCKS; unsigned int procid = giet_procid(); unsigned int cluster_xy = procid/NB_PROCS_MAX; unsigned int lpid = procid%NB_PROCS_MAX; unsigned int x = cluster_xy >> Y_WIDTH; unsigned int y = cluster_xy & ((1<>5), giet_proctime()); // transfert vers le frame buffer giet_fb_sync_write( 0, buf, 128 * 128 ); giet_tty_printf("\ndisplay completed for image %d at cycle %d \n", (blocks_to_skip>>5), giet_proctime()); blocks_to_skip = blocks_to_skip + NBLOCKS; } giet_exit("completed"); }