Mercurial > hg > Members > koba > t_dandy
view ppe/task_init.cc @ 27:871f7d9a2f35
running.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 27 Dec 2010 17:21:24 +0900 |
parents | c4210c1053e8 |
children | 39e643fc4f90 |
line wrap: on
line source
#include "Func.h" #include "Scheduler.h" /* 必ずこの位置に書いて */ SchedExternTask(Atari); SchedExternTask(State0); SchedExternTask(State1); SchedExternTask(State2); SchedExternTask(State3); SchedExternTask(State4); SchedExternTask(State5); SchedExternTask(State6); SchedExternTask(State7); SchedExternTask(State20); SchedExternTask(State21); SchedExternTask(State22); SchedExternTask(State30); /** * この関数は ../spe/spe-main と違って * 自分で呼び出せばいい関数なので * 好きな関数名でおk (SchedRegisterTask は必須) */ void task_init(void) { SchedRegisterTask(ATARI, Atari); SchedRegisterTask(STATE0, State0); SchedRegisterTask(STATE1, State1); SchedRegisterTask(STATE2, State2); SchedRegisterTask(STATE3, State3); SchedRegisterTask(STATE4, State4); SchedRegisterTask(STATE5, State5); SchedRegisterTask(STATE6, State6); SchedRegisterTask(STATE7, State7); SchedRegisterTask(STATE20, State20); SchedRegisterTask(STATE21, State21); SchedRegisterTask(STATE22, State22); SchedRegisterTask(STATE30, State30); }