Mercurial > hg > Members > tkaito > task_dandy
view ppe/PadUpdate.cc @ 25:aa37f220b7a8
add new files, not working.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 24 Nov 2010 19:24:43 +0900 |
parents | |
children |
line wrap: on
line source
#include <stdio.h> #include <string.h> #include "PadUpdate.h" #include "Func.h" /* これは必須 */ SchedDefineTask(PadUpdate); static int run(SchedTask *s, void *rbuf, void *wbuf) { void *idata = s->get_input(rbuf, 0); int pad_id = (int)s->get_param(0); int size = (int)s->get_param(1); void *global_data = (void*)s->global_get(pad_id); memcpy(global_data,idata,size); return 0; }