Rev | Line | |
---|
[30] | 1 | /*
|
---|
| 2 | * このファイルは tecsgen によりテンプレートとして自動生成されました
|
---|
| 3 | * このファイルを編集して使用することが意図されていますが
|
---|
| 4 | * tecsgen の再実行により上書きされてしまうため、通常
|
---|
| 5 | * gen/tSimple_template.c => src/tSimple.c
|
---|
| 6 | * のように名前, フォルダを変更してから修正します
|
---|
| 7 | */
|
---|
| 8 | /* #[<PREAMBLE>]#
|
---|
| 9 | * #[<...>]# から #[</...>]# で囲まれたコメントは編集しないでください
|
---|
| 10 | * tecsmerge によるマージに使用されます
|
---|
| 11 | *
|
---|
| 12 | * 呼び口関数 #_TCPF_#
|
---|
| 13 | * call port : cCall signature: sSample context: task
|
---|
| 14 | * ER cCall_sayHello( int32_t times );
|
---|
| 15 | * ER cCall_howAreYou( char_t* buf, int32_t len );
|
---|
| 16 | *
|
---|
| 17 | * #[</PREAMBLE>]# */
|
---|
| 18 |
|
---|
| 19 | /* プロトタイプ宣言や変数の定義をここに書きます #_PAC_# */
|
---|
| 20 | #include "tSimple_tecsgen.h"
|
---|
| 21 | #include <stdio.h>
|
---|
| 22 |
|
---|
| 23 | #ifndef E_OK
|
---|
| 24 | #define E_OK 0 /* success */
|
---|
| 25 | #define E_ID (-18) /* illegal ID */
|
---|
| 26 | #endif
|
---|
| 27 |
|
---|
| 28 | /* #[<ENTRY_PORT>]# eBody
|
---|
| 29 | * entry port: eBody
|
---|
| 30 | * signature: sTaskBody
|
---|
| 31 | * context: task
|
---|
| 32 | * #[</ENTRY_PORT>]# */
|
---|
| 33 |
|
---|
| 34 | /* #[<ENTRY_FUNC>]# eBody_main
|
---|
| 35 | * name: eBody_main
|
---|
| 36 | * global_name: tSimple_eBody_main
|
---|
| 37 | * oneway: false
|
---|
| 38 | * #[</ENTRY_FUNC>]# */
|
---|
| 39 | void
|
---|
| 40 | eBody_main()
|
---|
| 41 | {
|
---|
| 42 | #define BUF_LEN 64
|
---|
| 43 | char_t buf[64];
|
---|
| 44 | #define HELLO_TIMES (3)
|
---|
| 45 | puts( "calling sayHello" );
|
---|
| 46 | cCall_sayHello( HELLO_TIMES );
|
---|
| 47 | cCall_howAreYou( buf, BUF_LEN );
|
---|
| 48 | puts( buf );
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 | /* #[<POSTAMBLE>]#
|
---|
| 52 | * これより下に非受け口関数を書きます
|
---|
| 53 | * #[</POSTAMBLE>]#*/
|
---|
Note:
See
TracBrowser
for help on using the repository browser.