source: SimpleSample/trunk/SimpleSample/SimpleSample-trace.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.2 KB
Line 
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
18import( <tSysLog.cdl> );
19
20cell tSysLog SysLog {
21};
22cell tKernel Kernel {
23};
24
25signature sSample {
26 ER sayHello( [in]int32_t times );
27 ER howAreYou( [out,string(len)]char_t *buf, [in]int32_t len );
28};
29
30celltype tSample {
31 entry sSample eEnt;
32};
33
34[singleton,active]
35celltype tSimple {
36 call sSample cCall;
37 entry sTaskBody eBody;
38};
39
40cell tSample Sample {
41};
42
43cell tSimple Simple {
44 [through(TracePlugin,"")]
45 cCall = Sample.eEnt;
46};
47
48cell tTask Task {
49 cBody = Simple.eBody;
50 priority = 11;
51 stackSize = 1024;
52 taskAttribute = C_EXP( "TA_ACT" );
53};
Note: See TracBrowser for help on using the repository browser.