/* #[]#
* #[<...>]# から #[]# で囲まれたコメントは編集しないでください
* tecsmerge によるマージに使用されます
*
* 呼び口関数 #_TCPF_#
* call port : cCall signature: sSample context: task
* ER cCall_sayHello( int32_t times );
* ER cCall_howAreYou( char_t* buf, int32_t len );
*
* #[]# */
#include
#include "tSimple_tecsgen.h"
#ifndef E_OK
#define E_OK 0 /* 正常終了 */
#define E_ID (-18) /* 不正ID番号 */
#endif
/* #[]# eBody
* entry port: eBody
* signature: sTaskBody
* context: task
* #[]# */
/* #[]# eBody_main
* name: eBody_main
* global_name: tSimple_eBody_main
* oneway: false
* #[]# */
void
eBody_main(CELLIDX idx)
{
CELLCB *p_cellcb;
char buf[256];
if (VALID_IDX(idx)) {
p_cellcb = GET_CELLCB(idx);
}
else {
/* エラー処理コードをここに記述します */
} /* end if VALID_IDX(idx) */
#define N_HELLO 3
printf( "Simple: Say hello %d times.\n", N_HELLO );
cCall_sayHello( N_HELLO ); /* 呼び口 cCall の sayHello を呼び出す */
printf( "Simple: How are you?\n" );
cCall_howAreYou( buf, sizeof buf ); /* 呼び口 cCall の howAreYou を呼び出す */
puts( buf );
}
/* #[]#
* これより下に非受け口関数を書きます
* #[]#*/