#include "consumer_proto.h" FUNC(cons_func) { srl_mwmr_t input = GET_MWMR(mwmr); char buf[BUF_SIZE]; int i,x; while(1) { srl_mwmr_read(input, (unsigned int*)buf, WORD_SIZE);//8*4 srl_log_printf (NONE, "Consumer : %s\n", buf); #ifdef FULL_PRINT //srl_log_printf (NONE, "Consumer : "); for(i=0; i>4 ; x > 0 ; x-- ) asm volatile ( "nop" ); //#endif } }