24.01.2015 Views

C - U-netSURF

C - U-netSURF

C - U-netSURF

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

#define Sci_PutChar SCI3_PutChar<br />

#define Sci_GetChar SCI3_GetChar<br />

#define Sci_RxiHandler SCI3_RxiHandler<br />

続 いてサンプルプログラム「sample.c」を 次 のように 改 造 します。<br />

/* ------------------------------------------------------------------------ */<br />

/* Hyper Operating System V4 サキンルハルハロエラム */<br />

/* */<br />

/* Copyright (C) 1998-2002 by Project HOS */<br />

/* http://sourceforge.jp/projects/hos/ */<br />

/* ------------------------------------------------------------------------ */<br />

/* Copyright (C) 2009 by TOYO-LINX Co.,Ltd.*/<br />

/* http://www2.u-netsurf.ne.jp/~toyolinx */<br />

/* ------------------------------------------------------------------------ */<br />

#include "kernel.h"<br />

#include "kernel_id.h"<br />

//#include "h83664f.h"<br />

#include "iodefine.h"<br />

#include "h8t_sci.h"<br />

#include "binary.h"<br />

//Cで2 進 数 表 示 をを 使 う(00000000-11111111)<br />

/* メ゜ンル 関 数 */<br />

int main()<br />

{<br />

/* SCIの 初 期 化 */<br />

// Sci_Initialize(SCI_19200);<br />

Sci_Initialize(SCI_38400);<br />

/* 開 始 メッセセーヴジ */<br />

Sci_PutChar('H');<br />

Sci_PutChar('O');<br />

Sci_PutChar('S');<br />

Sci_PutChar('\r');<br />

Sci_PutChar('\n');<br />

sta_hos();<br />

}<br />

return 0;<br />

/* 初 期 化 デンルチラ */<br />

void Initialize(VP_INT exinf)<br />

{<br />

/* act_tsk(TSKID_SAMPLE1);*/<br />

}<br />

// I/Oポーヴダの゜ニッシホラ゜ズ<br />

IO.PCR5 = _11111111B; //P50-57 出 力<br />

IO.PCR6 = _11111111B; //P60-67 出 力<br />

/* サキンルハルタスク */<br />

143<br />

TK-3687mini ユーザーズマニュアル C 言 語 版

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!