Mercurial > hg > Members > kono > Cerium
comparison example/get_segment/ppe/task_init.cc @ 440:0f3605d1ee73
fix get_segment exaple PPE task
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 25 Sep 2009 01:47:03 +0900 |
parents | 81b25e5d5379 |
children |
comparison
equal
deleted
inserted
replaced
439:95c0457a7d31 | 440:0f3605d1ee73 |
---|---|
1 #include "Func.h" | 1 #include "Func.h" |
2 #include "Scheduler.h" | 2 #include "Scheduler.h" |
3 | 3 |
4 /* 必ずこの位置に書いて */ | 4 /* 必ずこの位置に書いて */ |
5 SchedExternTask(Hello); | 5 SchedExternTask(Hello); |
6 SchedExternTask(Hello1); | |
6 | 7 |
7 /** | 8 /** |
8 * この関数は ../spe/spe-main と違って | 9 * この関数は ../spe/spe-main と違って |
9 * 自分で呼び出せばいい関数なので | 10 * 自分で呼び出せばいい関数なので |
10 * 好きな関数名でおk (SchedRegisterTask は必須) | 11 * 好きな関数名でおk (SchedRegisterTask は必須) |
12 | 13 |
13 void | 14 void |
14 task_init(void) | 15 task_init(void) |
15 { | 16 { |
16 SchedRegisterTask(HELLO_TASK, Hello); | 17 SchedRegisterTask(HELLO_TASK, Hello); |
18 SchedRegisterTask(HELLO_TASK1, Hello1); | |
17 } | 19 } |