Mercurial > hg > Game > Cerium
annotate example/word_count/ppe/task_init.cc @ 924:1640b14ec15a draft
show dma wait format
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 30 Jul 2010 16:40:30 +0900 |
parents | cb06748ba6cf |
children | 852ed17d8af1 |
rev | line source |
---|---|
393 | 1 #include "Func.h" |
2 #include "Scheduler.h" | |
3 | |
4 /* 必ずこの位置に書いて */ | |
5 SchedExternTask(Print); | |
6 SchedExternTask(Exec); | |
7 SchedExternTask(RunFinish); | |
8 | |
9 /** | |
10 * この関数は ../spe/spe-main と違って | |
11 * 自分で呼び出せばいい関数なので | |
12 * 好きな関数名でおk (SchedRegisterTask は必須) | |
13 */ | |
14 void | |
15 task_init(void) | |
16 { | |
17 SchedRegisterTask(TASK_PRINT, Print); | |
18 SchedRegisterTask(TASK_EXEC, Exec); | |
19 SchedRegisterTask(RUN_FINISH, RunFinish); | |
20 } |