source: SimpleSample/trunk/SimpleSample/src/tSimple.c@ 30

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

TECS Simple Sample

File size: 1.1 KB
Line 
1/* #[<PREAMBLE>]#
2 * #[<...>]# から #[</...>]# で囲まれたコメントは編集しないでください
3 * tecsmerge によるマージに使用されます
4 *
5 * 呼び口関数 #_TCPF_#
6 * call port : cCall signature: sSample context: task
7 * ER cCall_sayHello( int32_t times );
8 * ER cCall_howAreYou( char_t* buf, int32_t len );
9 *
10 * #[</PREAMBLE>]# */
11
12#include <stdio.h>
13#include "tSimple_tecsgen.h"
14
15#ifndef E_OK
16#define E_OK 0 /* 正常終了 */
17#define E_ID (-18) /* 不正ID番号 */
18#endif
19
20/* #[<ENTRY_PORT>]# eBody
21 * entry port: eBody
22 * signature: sTaskBody
23 * context: task
24 * #[</ENTRY_PORT>]# */
25
26/* #[<ENTRY_FUNC>]# eBody_main
27 * name: eBody_main
28 * global_name: tSimple_eBody_main
29 * oneway: false
30 * #[</ENTRY_FUNC>]# */
31void
32eBody_main()
33{
34 char buf[256];
35
36#define N_HELLO 3
37 printf( "Simple: Say hello %d times.\n", N_HELLO );
38 cCall_sayHello( N_HELLO ); /* 呼び口 cCall の sayHello を呼び出す */
39
40 printf( "Simple: How are you?\n" );
41 cCall_howAreYou( buf, sizeof buf ); /* 呼び口 cCall の howAreYou を呼び出す */
42 puts( buf );
43}
44
45/* #[<POSTAMBLE>]#
46 * これより下に非受け口関数を書きます
47 * #[</POSTAMBLE>]#*/
Note: See TracBrowser for help on using the repository browser.