Rev | Line | |
---|
[30] | 1 | /*
|
---|
| 2 | * Simple な Sample
|
---|
| 3 | *
|
---|
| 4 | * +-------------+ +-------------+ +-------------+
|
---|
| 5 | * | | | | | |
|
---|
| 6 | * | tTask | sTaskBody | tSimple | sSample | tSample |
|
---|
| 7 | * | Task |-----------|> Simple |----------|> Sample |
|
---|
| 8 | * | |cTask eBody| |cCall eEnt| |
|
---|
| 9 | * | |Body | | | |
|
---|
| 10 | * +-------------+ +-------------+ +-------------+
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 |
|
---|
| 14 | // cygwin 用の簡易な型定義
|
---|
| 15 | import( <cygwin_kernel.cdl> );
|
---|
| 16 | // TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); でよい
|
---|
| 17 |
|
---|
| 18 | signature sSample {
|
---|
| 19 | ER sayHello( [in]int32_t times );
|
---|
| 20 | ER howAreYou( [out,string(len)]char_t *buf, [in]int32_t len );
|
---|
| 21 | };
|
---|
| 22 |
|
---|
| 23 | celltype tSample {
|
---|
| 24 | entry sSample eEnt;
|
---|
| 25 | };
|
---|
| 26 |
|
---|
| 27 | [singleton,active]
|
---|
| 28 | celltype tSimple {
|
---|
| 29 | call sSample cCall;
|
---|
| 30 | entry sTaskBody eBody;
|
---|
| 31 | };
|
---|
| 32 |
|
---|
| 33 | cell tSample Sample {
|
---|
| 34 | };
|
---|
| 35 |
|
---|
| 36 | cell tSimple Simple {
|
---|
| 37 | cCall = Sample.eEnt;
|
---|
| 38 | };
|
---|
| 39 |
|
---|
| 40 | cell tTask Task {
|
---|
| 41 | cBody = Simple.eBody;
|
---|
| 42 | priority = 11;
|
---|
| 43 | stackSize = 1024;
|
---|
| 44 | taskAttribute = C_EXP( "TA_ACT" );
|
---|
| 45 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.