source: SimpleSample/trunk/SimpleSample/SimpleSample.cdl@ 30

Last change on this file since 30 was 30, checked in by okuma-top, 11 years ago

TECS Simple Sample

File size: 1.1 KB
RevLine 
[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 用の簡易な型定義
15import( <cygwin_kernel.cdl> );
16 // TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); でよい
17
18signature sSample {
19 ER sayHello( [in]int32_t times );
20 ER howAreYou( [out,string(len)]char_t *buf, [in]int32_t len );
21};
22
23celltype tSample {
24 entry sSample eEnt;
25};
26
27[singleton,active]
28celltype tSimple {
29 call sSample cCall;
30 entry sTaskBody eBody;
31};
32
33cell tSample Sample {
34};
35
36cell tSimple Simple {
37 cCall = Sample.eEnt;
38};
39
40cell 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.