1
0

More than 5 years have passed since last update.

athrill(アスリル)機能マニュアル(外部入出力)

Last updated at Posted at 2018-06-24

概要

athrill(アスリル)の外部入力について解説します.

外部入力

シリアル入力(S)

シリアルチャネル0は,標準でデバッグモードでシリアル入力用に使用できます.
シリアル入力コマンドの書式は以下のとおりです.

 * serial(S):
   1) serial <channel> <input_data(string)>
      set <input_data> on the serial(<channel>) as an input

以下に,入力例を示します.

  • asp3を起動すると,シリアルチャネル0で標準出力に起動メッセージが出力されます.
[CPU>
TOPPERS/ASP3 Kernel Release 3.2.0 for V850-ESFK3 (Jun 23 2018, 21:03:48)
Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
                            Toyohashi Univ. of Technology, JAPAN
Copyright (C) 2004-2017 by Embedded and Real-Time Systems Laboratory
            Graduate School of Information Science, Nagoya Univ., JAPAN

System logging task is started.
Sample program starts (exinf = 0).
E_OBJ (-1) reported by `serial_opn_por'.
task1 is running (001).   |
task1 is running (002).   |
qtask1 is running (003).   |

[NEXT> pc=0x94c sample1.c 152
  • シリアルチャネル0に"3>a"を入力
[DBG>S 0 3>a
  • 処理再開すると,asp3のサンプルメインタスクが"3>"入力を検出し,task3のプライオリティをHIGHにし,task3がシリアル出力し始めます
[DBG>c
[CPU>#chg_pri(3, HIGH_PRIORITY)
#act_tsk(3)
task3 is running (001).       *
task3 is running (002).       *
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0